File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: 42959
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 ... />"
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 >

rather that what you did
I agree. Here's the link:
subject: Deploying an Applet.
It's not a secret anymore!