File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Deploying an Applet.  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Deploying an Applet.  " Watch "Deploying an Applet.  " New topic
Author

Deploying an Applet.

Jesse Miller
Ranch Hand

Joined: Apr 05, 2010
Posts: 37
I am having a little trouble deploying my Java Applet that I created in NetBeans IDE. So, to start I have my applet in NetBeans and I have it build my JAR file called LabStats.jar.

The JAR file has three sub folders when unpacked (META-INF, labrecon, labstats). My applet is in labstats and is called Applet.class.

So, my HTML file looks like this:


When I run this in a browser I simply get a blank grey box, nothing ever loads. What am i missing?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41613
    
  55
There are usually messages in the Java Console if something goes wrong. Also try splitting the applet tag into starting and ending tag ("<applet ... > </applet>" instead of ("<applet ... />"


Ping & DNS - my free Android networking tools app
Jesse Miller
Ranch Hand

Joined: Apr 05, 2010
Posts: 37
I have looked for messages in the Java Console but there are no errors. I just tried splitting the starting and ending tag but the result was no different. Anything else?

Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

first of all i do not know how you managed to name your file Applet.class as you actually need to extend Applet for performing any applet related tasks ...

anyways try using ...

<applet code="labstats.Applet" name ="Applet" archive="LabStats.jar"
width =880 height=610 >
</applet>

rather that what you did


http://plainoldjavaobject.blogspot.in
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying an Applet.