Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Deploying an Applet.

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
rubbery bacon. rubbery tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic