JOGL applet deployment
Posted by
nemesis on
Jun 17, 2011; 3:21am
URL: https://forum.jogamp.org/JOGL-applet-deployment-tp3074893.html
Hello.
I am complete newbie to JOGL. However, I managed to write my first applet using JOGL and Eclipse. My problem is deployment. If I create a html page containing the following
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=600
height=400
align=middle
hspace = 0
vspace = 0
archive="viewer.jar,
http://jogamp.org/deployment/util/applet-launcher.jar,
http://jogamp.org/deployment/webstart/nativewindow.all.jar,
http://jogamp.org/deployment/webstart/jogl.all.jar,
http://jogamp.org/deployment/webstart/gluegen-rt.jar"> param name="codebase_lookup" value="false">
param name="subapplet.classname" value="com.Viewer3D.Viewer3D">
param name="subapplet.displayname" value="JOGL Test Applet">
param name="noddraw.check" value="true">
param name="progressbar" value="true">
param name="jnlpNumExtensions" value="1">
param name="jnlpExtension1" value="
http://jogamp.org/deployment/webstart/jogl-core.jnlp">
</applet>
(I removed the starting brackets from the param fields becasue it caused the lines not to be displayed in the preview. In the html they are there.)
it works like a charm. However, when I copy the .jar files in the folder that contains the html ( and also the native dlls), the applet launcher sayst that it is unable to load the applet.
Could someone please tell me what is the correct way of deploying an applet (what files do I need to put in the root directory, etc) and how to format the applet tag so that the applet runs form my server and is not refferencing the jogamp repositories? Is there a step by step deployment tutorial somewhere for JOGL applets?
I am expecting the applet to be run on several platforms. How would I go about making sure that users on OSX,Linux, etc can run my applet?
Thank you.