Login  Register

Re: Running natives from JARs

Posted by Michael Bien on Apr 10, 2011; 1:53am
URL: https://forum.jogamp.org/Running-natives-from-JARs-tp2800394p2801146.html

yes you are right, for applets you won't need that usually. It would be more interesting for lowering the barrier to get started with jocl however ("just put everything in the classpath and you are done").

You can use jnlps for the applet in the same way you would setup a webstart application. It won't work with old java installations but the experience of running java 5 or older in the browser is not that good anyway :)

for an example take a look at the CLInfo jnlp file at:
http://jogamp.org/jocl-demos/www/

all you have to do is to add this jnlp extension and the right libraries are chosen for you automatically.
<extension href="http://jogamp.org/deployment/webstart-next/jocl.jnlp" name="jocl"/>
(of course you can host the extension jnlp on your server if you like)