Skip to main content

jnlpappletlauncher w/ jogl working on windows?

2 replies [Last post]
someoney3000
Offline
Joined: 2011-01-31
Points: 0

I'm interested in java applets w/ opengl so I looked into jogl and came upon jnlpappletlauncher. So I attempted to view this site: https://jogl-demos.dev.java.net/applettest.html.
On Mac, it works fine under both Safari and Firefox. On Windows Vista, I get "Error: Class Not Found: demos.applets.GearsApplet" whether I am using Firefox, Chrome, or IE.
Is this a OS dependent issue? Is there something I did not install in Windows?
I feel this should be a common problem, but a google search was not insightful.
Thank you for any help you can provide.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the_alchemist
Offline
Joined: 2010-08-10
Points: 0

Huh, I get this on Windows 7, 64-bit, JRE 6_24:

java.lang.ClassNotFoundException: demos.applets.GearsJOALApplet
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1914)

I'm assuming we're talking about http://download.java.net/media/jogl/demos/www/applettest-joal.html . Same result in IE and Firefox.

bwakelam
Offline
Joined: 2004-07-13
Points: 0

Hi,
Since upgrading my JRE to JRE1.6.0_10 version and beyond, up to JRE1.6.0_23 version, I have been unable to run my Applets in any browser on my 32bit Windows VISTA system. The error message I get is "Error: Class not found". The class referred to is the Applet's main class.
I am using JNLP and the JNLPAppletLauncher to load additional library JARs at runtime, specifically Java3D and JOGL amongst others.
From my research on many different forums now and some experimentation, I have found the problem appears to be directly associated with these later updates of the JRE.
I understand these updates of the JRE run the Applet in its own process, for several obvious benefits, and that this is what is interfering with the JNLPAppletLauncher's ability to find and load the main class.
I get the same error in FireFox, IE, Opera, SeaMonkey and Google Chrome browsers. However, the Applets run fine in the Apple Safari browser.
To confirm that this problem is not just related to the way I am embedding my Applets, I get exactly the same results with the java.net JOGL/JOAL Applet Test at http://download.java.net/media/jogl/demos/www/applettest-joal.html.
If I switch off the "Next Generation Java Plugin", all of the Applets then run successfully in the IE browser under JRE1.6.0_23 but continue to fail in the remaining (Mozilla and Chrome) browsers.
If I revert to a pre-JRE1.6.0_10 version (JRE1.6.0_07), the Applets all run successfully in all of the browsers.
Even if switching off the "Next Generation Java Plugin" solved the problem on all browsers, it is not feasible for me to ask all my clients to do so (even if they do have Administrator permissions) and it is definitely not feasible for me to ask them to downgrade their JRE installation to JRE1.6.0_07, even if they did understand what that means.
As this problem has clearly been documented in many different flavours on your forum as well as many others across all of the JRE updates since JRE1.6.0_10, I would hope you would have a solution to it by now. I have been unable to find a solution in all my research to date.
Is there a documented method of embedding the Applet code in the HTML that will work with JNLPAppletLauncher and JRE1.6.0_23?
I am currently using:

<br />

<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width="520"
height="390"
class="applet"
archive="../bin/model.jar,
http://download.java.net/media/applet-launcher/applet-launcher.jar,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcor...,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3duti...,
http://www.iq2tech.com/Java/ext/StarfireExt.jar,
http://www.iq2tech.com/Java/ext/vrml97.jar,
http://www.iq2tech.com/Java/ext/QTJava.zip,
http://www.iq2tech.com/Java/ext/customizer.jar,
http://www.iq2tech.com/Java/ext/jmf.jar,
http://www.iq2tech.com/Java/ext/mediaplayer.jar,
http://www.iq2tech.com/Java/ext/multiplayer.jar,
http://www.iq2tech.com/Java/ext/jmf.properties,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-curr...,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
http://download.java.net/media/java3d/webstart/release/vecmath/latest/ve...
<param name="codebase_lookup" value="false"><param name="subapplet.classname" value="com.iq2tech.model.Iq2model">
<param name="subapplet.displayname" value="Running 3D Viewer Applet">

<param name="jnlpNumExtensions" value="2">
<param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp">
<param name="jnlpExtension2" value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
</applet>

Thank you in advance for any help you can give me in this urgent matter.
Kind regards
bwakelam