Hello,
I’m working on making a JOGL application that is launched via web start, like the JOGL demos.
The program compiles and runs fine on my development computer, both locally and via web start. When run from a different computer however I get a java.lang.reflect.InvocationTargetException, caused by com/sun/opengl/util/Animator. Thinking it might be something in my program I tried it with the gears demo, but got the same thing.
I did the following:
- download the gears.java file
- change frame.show() to frame.setVisible(true) to fix deprecation warning
- compile with javac Gears.java
- put the class files in [root]/demos/gears
- put the META-INF folder from jogl-demos.jar in [root]
- run jar cf Gears.java * to end up with a .jar file with the same structure as jogl-demos.jar
- put it on a server, along with jogl-demos-utils.jar, jogl.jar and jogl-natives-win32.jar
- modify Gears.jnlp and upload it.
- upload an html page linking to the jnlp file.
The .jnlp file looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://www.bbvh.nl/remco/" href="Gears.jnlp">
<information>
<title>Gears Java Test</title>
<vendor>BBVH Architecten</vendor>
<homepage href="www.bbvh.nl"/>
<description>Gears Demo</description>
<description kind="short">Gears description</description>
<offline-allowed/>
</information>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<property name="sun.java2d.noddraw" value="true"/>
<jar href="Gears.jar" main="true"/>
<jar href="jogl-demos-util.jar" />
<extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
</resources>
<application-desc main-class="demos.gears.Gears"/>
</jnlp>
Can anyone tell me what I’m doing wrong?
Thanks in advance.