Posted by
Sven Gothel on
Jul 09, 2012; 10:47pm
URL: https://forum.jogamp.org/How-to-make-Jogl-work-with-Janel-tp4025470p4025485.html
On 07/09/2012 08:26 PM, Cousken [via jogamp] wrote:
> Thanks a lot for the reply! A Webstart application would work fine for my
> demographic. Do you happen to know how to solve the issue of local save games?
There are some JNLP services enabling you to save some data
related to your website - check the JNLP spec.
>
> I've had a very long look at the JOGL Deployment page you linked to and with
> my limited knowledge of Java it's hard to understand.
Have you checked the wiki about JNLP/Applets and the jogl applet test page?
Especially the latter which big bold fonts mentioning 'including documentation' ?
IMHO it's pretty simple to copy/paste the html and JNLP snippets
and edit them for personal use - maybe while browsing and double checking
the applet / jnlp specs.
> I used a tutorial at
> Oracle to develop a Webstart for my application, unfortunately all i managed
> to make it do is open the .jnlp file as XML and not launch the application :(
Your javascript tells me java7 is required,
where your jnlp file only requires 1.6+
When I launch your demo manually 'javaws
http://politanski.se/ws/ws.jnlp'it shows that you have compiled your classes with Java7 I assume,
i.e. can't launch w/ Java6.
I recommend you compile w/ Java6, so you have a wider audience.
If you want to use Java7 and 'crosscompile' for Java6 you have to jump through
some hoops as you can see in GlueGen
<
http://jogamp.org/git/?p=gluegen.git;a=blob;f=make/jogamp-env.xml;hb=HEAD>,
which deals w/ setting the Java source/target language level including
using a matching rt.jar - grep for 'target.rt.jar'.
<
http://jogamp.org/git/?p=gluegen.git;a=blob;f=make/build.xml;h=671e3c3c32352dbba7a339279a6884e9de65828c;hb=HEAD#l667>
But I guess it's most easy to just use Java6 ..
Other than this, the ws.jnlp looks ok, but I can't test.
> I have no idea how to debug it, if someone could take a look
> <
http://politanski.se/ws/ws.html> and help me out i would really appreciate it.
Due to bug 591 (which is already fixed but not 'released')
<
https://jogamp.org/bugzilla/show_bug.cgi?id=591>
you are not able to set jogl debug flags [yet].
However, w/ next release you can set the JVM properties in the JNLP,
as mentioned in the bug report and enable trace via the java control panel
or on 'unix' $HOME/.java/deployment/deployment.properties:
deployment.trace=true
deployment.log=true
~Sven