Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet not displaying in Browser

 
arvind kushwaha
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Team,

I have Created one applet, but it not showing on browser..Please help me out ..as i am new babie in applet.

Thanks
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you haven't provided any details at all, the best I can offer you is to point you to the Applet tutorial lesson: http://docs.oracle.com/javase/tutorial/deployment/applet/index.html
 
arvind kushwaha
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Darryl Burke

I have created one JSP Known as applet-basic.html taken the help from http://jupload.sourceforge.net/

I had done all the thing which is mentioned on above website. When I running my application its not working in browser. but after clicking on above website/ basic demo/ after clicking on this link applet is asking for digital sinature when i click on yes. Then suddenly my program start working fine.

But when i running only my program is not showing anything in window just a blank window. May be because of digital signature i donot know why please help me out.

Thanks Darryl Burke
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give us the details about how you are embeding the applet into the web page that you are loading to the browser as a test?

Are you using the APPLET tag? The object tag? A script? What is the extension of the Applet file, ".class" or ".jar" or something else?

If you embed with the Object tag, What is the content type (attribute "type=") that you give to the applet, example: application/java, application/x-java-applet? (I have noticed that, at least as of Java SE 6, that the Java plug-in only uses plain and version variations of "application/x-java-*" -- "application/java" isn't being registered as a mime-type in any of my browsers (Firefox, IE, Opera) by the Java installer. So, some of the earlier tutorials on Applets that tell you to use "application/java" don't work anymore.)

application/x-java-* variations being:
"x-java-applet,"
"x-java-bean," or
"x-java-vm"
Plus, perhaps though this is optional, with ";version=" [x.x][.x] (x being a digit) added to the end for targeting specific versions of the JVM instead of running the applet with the latest version of Java installed on the user's machine.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you see on your browser's console? Please copy paste the error message(s)
 
arvind kushwaha
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

In Browser it show nothing I am attaching my JSP pages

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<applet id="jumpLoaderApplet" name="jumpLoaderApplet"
code="jmaster.jumploader.app.JumpLoaderApplet.class"
archive="jumploader_z.jar"
width="715"
height="500"
mayscript>
<param name="uc_uploadUrl" value="uploadHandler.jsp"/>
</applet>
</body>
</html>

I had taken the reference from http://jumploader.com/

When i clicked on above link my project start working after accepting the applet warning.

But when i run my project without clicking on above link demo page it's show nothing in browser i don't understand why it happening please help me.
error.png
[Thumbnail for error.png]
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the problem isn't obvious, you need to open the Java console where you can find any error messages of problems that happen when your browser tries to run the Applet.

It looks like you're using Ubuntu, from your screen shot, so perhaps you may find this useful: How to show java plugin console.
 
arvind kushwaha
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Walter Gabrielsen lii,

I did that whatever is shown on your given link but there is no success.

Anyway thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic