aspose 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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Deploying an Applet.  " Watch "Deploying an Applet.  " New topic

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

Joined: Mar 22, 2005
Posts: 39541
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 - updated with new look and Ping home screen widget
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: 383

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 >

rather that what you did
I agree. Here's the link:
subject: Deploying an Applet.
Similar Threads
Applet jar file,use of archive in applet help
HTML wont run Applet
My java applet program does not appear in appletviwere!!!
The import cannot be resolved
Applet Deployment / Netbeans / Commandline