Login  Register

Re: JOGL Applet

Posted by Worker on May 26, 2011; 3:15pm
URL: https://forum.jogamp.org/JOGL-Applet-tp2968458p2989098.html

Strange, my applets works perfect with loading from jboss application server
and he uses the web container tomcat that loads all jars and .dll's or .so's for linux.

(The only problem in applets are cube textures, they are complete
destroyed there, compressed  and uncompressed textures.
Use instead a sky sphere that does works also in an applet.)

Normaly, when you test it local, its very simple at all.
What you need, is a bit understanding how a webcontainer or
webserver works.

You must only correct define your requirements, so that
the server can deliver your jars and dll's to the browser.
The main work does the JNLPLauncherApplet for you.

Look in your start page, most index.html, your referenced project
jnlp, what is called in your index.html and look that all
*.jars and *.dll's are in the root path.

Pack your classes and resources also in your own jar,
the only, YOURS, that is not signed.

Now you must have such a structure on a normal web server :
(for an application server how jboss, we must take other steps, eg. create a *.war)

myappletproject.jnlp
gluegen-rt.dll
gluegen-rt-jar
jogl.all.jar
myown.jar (with your applet in it)
nativewindow.all.jar
nativewindow_all.dll
nativewindow_win32.dll
index.html (calls the applet and holds a reference to myappletproject.jnlp)

 

I hope that helps.....