about jogl applet in the web

hi, i am a freshmen for jogl.
i want to insert my applet(based jogl) into a html file, so that I can browser it by the web server (such like tomcat).

flow is the html file

the 3 jar files : jogl.jar,gluegen-rt.jar,joglTest.jar and other native jar all in the same dir with the html.
I signed all the jar by use this command : jarsigner -keystore mystore jogl.jar mykey.

when browse the html file in the brower (ie and firefox i test) , the JOGLAppletLauncher applet has be loaded.
But the progress bar of the applet draw the text " Loading native libraries ".
After I wait a long time ,the text did’t changed , and my JoglTest.demo1 applet didn’t display.

please help me to deal the problem. thanks…

The JOGLAppletLauncher is quite old. Maybe you should try it’s successor:
https://applet-launcher.dev.java.net/

For a running example head to https://jogl-demos.dev.java.net/applettest.html

Thanks for the help. I get these code from https://applet-launcher.dev.java.net

I test the code on my tomcat, it successed.

So I download these jar ( gluegen-rt.jar .etc ) to my html dir.Then change the code like this:

[/color]

Hehe it failed display. but when i change the green line to http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar. I successed. I don’t know why.
I also change the code use JOGLAppletLauncher, change the line

to

Then the code of mine also successed. Why ?

Don’t know. Should have worked I think…

The JNLPAppletLauncher is a hack that can load java webstart extensions - maybe it expects all jars referenced in the extension file to be on the archive-attribute. So just dont change the jogl.jar and gluegen-rt.jar references and add your own jar. the jogl-demos.jar reference is not needed for your code to work, so you can leave it out.


<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
      width=600
      height=400
      archive="applet-launcher.jar,
               http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
               http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
               joglTest.jar">
   <param name="codebase_lookup" value="false">
   <param name="subapplet.classname" value="JoglTest.demo1">
   <param name="subapplet.displayname" value="My jogl test">
   <param name="noddraw.check" value="true">
   <param name="progressbar" value="true">
   <param name="jnlpNumExtensions" value="1">
   <param name="jnlpExtension1"
          value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
 </applet>

should work.

By the way. Java code guidelines advice that packages should start lower case and class names upper case, so change your folders/code to use “joglTest.Demo1” instead of “JoglTest.demo1”.

Thank you very much.
Now it works , I make mistake at the jar file’s name . It 's “gluegen-rt.jar” , not “glueGen-rt.jar”.
I don’t know the name of the jar file in my web folder is uppercase “G”.
In windows gluegen-rt.jar == glueGen-rt.jar, but for web server they are not equal.

Thanks for your advise, I started to learn java not a long time.

Thanks:)