finally I can get my applet working in firefox,
I'm writing an applet application in my ubuntu box, and here's the first configuration
- eclipse 3.3
- firefox 188.8.131.52
- sun java plugin 6
so, I tried my luck with java5, and here's the second configuration
- eclipse 3.3
- firefox 2.00.14
- sun java plugin 5
java.lang.UnsupportedClassVersionError: Bad version number in .class
oops, forgot to change the JDK compliance setting on my eclipse from 6.0 to 5.0 (window->preferences->java->compiler), voila, it run :)
if any of you wondering whats the error above, basically because you've build a java program using newer compiler, but running it under older jre. For example you've compiled your program using JDK 1.6, on eclipse, and when you tried to run it with your default jre set to 1.5, then you'll get those error throw at you.
And yes, with java5 I was also able to run applet from another site..
so for now my conclusion is,
don't use java6, if you want to write, or run applet application
I hope they'll fixed it soon..
and just a tip:
when you deploy your applet on web page, if you've put your .class file(s) under a directory inside your web root, don't prefix the code properties of applet tag with "./", or browser will say applet loading failed.
dont use :
<applet code="./control/HelloWorld.class" height="400" width="400"></applet>
instead use :
<applet code="control/HelloWorld.class" height="400" width="400"></applet>
keyword : applet, firefox, java 6 plugin, ubuntu, hang, crashed