-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Original author: [email protected] (August 11, 2010 14:35:03)
While Exporting a OpenGL Sketch as applet, the applet crashes since Java6 Update21. It seems to be, that the JNLPAppletlauncher does not like JARs any more. My solution is, to create a JNLP file containing the (signed) JARs.
This is a example of the spacejunk opengl demo.
For the HTML:
<applet codebase="." code="SpaceJunk" width="1024" height="768" align="middle">
<param name="jnlp_href" value="spacejunk.jnlp"></applet>
For the JNLP:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+"
codebase=""
href="spacejunk.jnlp">
<information>
<title>Space</title>
<vendor>Stefan</vendor>
<homepage href="http://www.inf.tu-dresden.de"/>
<description>Dings</description>
<!-- icon href=""/ -->
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources>
<j2se version="1.4+"/>
<jar
href="spacejunk.jar"
main="true"/>
<extension
name="jogl"
href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
<jar
href="core.jar"/>
<jar
href="opengl.jar"/>
<property name="sun.awt.noerasebackground" value="true"/>
<property name="sun.awt.erasebackgroundonresize" value="true"/>
<property name="sun.java2d.noddraw" value="true"/>
</resources>
<applet-desc
main-class="SpaceJunk"
name="SpaceJunk"
width="1024"
height="768">
</applet-desc>
</jnlp>
Original issue: http://code.google.com/p/processing/issues/detail?id=352