creating PApplet with Netbeans using JNLP and OpenGL libraries (or other)
in
Integration and Hardware
•
3 years ago
Hey Everyone!
I have got a problem, and despite searching the web for it i haven't found a solution. I would be very happy if you could help!
I develop an Applet using Processing, deploying it via the JNLP library. If i just use the core.jar, everything works fine, I can deploy the applet and it is working.
If i switch from P3D to OpenGL, it will start without problem from the Netbeans IDE via right-clickt and choosing "Run file". Perfect!
When i take the created *.jar and the corresponding html and *.jnlp file, it wont work anymore! I think it has to do with the libraries, if I implement for example lastFM-bindings for java, it will work from the IDE as well, but not when I start it via the HTML/jnlp.
Also, to have acces to all the *.jar, i changed my build.xml like this, following some advice on the web:
<target name="-post-jar">
<jar jarfile="dist/Combined-dist.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/lib/core.jar" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/libraries/opengl/library/jogl.jar" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/libraries/opengl/library/opengl.jar" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/libraries/opengl/library/gluegen-rt.jar" excludes="META-INF/*" />
<zipfileset src="../../last.fm-bindings-7.3/last.fm-bindings.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Main-Class" value="myapplet.Main"/>
</manifest>
</jar>
</target>
Hm, i would greatly appreciate if you could give me some hints were i went wrong, i honestly don't know to help me anymore (also since i don't get any error messages when starting the jar via jnlp)....
Thank you!
Best regards,
roman
I have got a problem, and despite searching the web for it i haven't found a solution. I would be very happy if you could help!
I develop an Applet using Processing, deploying it via the JNLP library. If i just use the core.jar, everything works fine, I can deploy the applet and it is working.
If i switch from P3D to OpenGL, it will start without problem from the Netbeans IDE via right-clickt and choosing "Run file". Perfect!
When i take the created *.jar and the corresponding html and *.jnlp file, it wont work anymore! I think it has to do with the libraries, if I implement for example lastFM-bindings for java, it will work from the IDE as well, but not when I start it via the HTML/jnlp.
Also, to have acces to all the *.jar, i changed my build.xml like this, following some advice on the web:
<target name="-post-jar">
<jar jarfile="dist/Combined-dist.jar">
<zipfileset src="${dist.jar}" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/lib/core.jar" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/libraries/opengl/library/jogl.jar" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/libraries/opengl/library/opengl.jar" excludes="META-INF/*" />
<zipfileset src="../../processing-1.1/libraries/opengl/library/gluegen-rt.jar" excludes="META-INF/*" />
<zipfileset src="../../last.fm-bindings-7.3/last.fm-bindings.jar" excludes="META-INF/*" />
<manifest>
<attribute name="Main-Class" value="myapplet.Main"/>
</manifest>
</jar>
</target>
Hm, i would greatly appreciate if you could give me some hints were i went wrong, i honestly don't know to help me anymore (also since i don't get any error messages when starting the jar via jnlp)....
Thank you!
Best regards,
roman
2