Struggling to get set up with JOGL2.0

Posted by thecoshman on Game Development See other posts from Game Development or by thecoshman
Published on 2011-11-15T11:17:47Z Indexed on 2011/11/15 18:09 UTC
Read the original article Hit count: 384

Filed under:
|
|
|

I guess that Game Dev' is a more sensible place for my problem then SO.

I did have JOGL1.1 set up and working, but I soon discovered that it did not support the latest OpenGL, so I started work on upgrading to JOGL2.0 it's not gone too well.

Firstly, is it worth me trying to get JOGL to work, or should I just move over to LWJGL? I am fairly comfortable with OpenGL (via C++) and from what I did get working with JOGL1.1, I seem to be OK adapting to it.

Assuming that I stick with JOGL, am I foolish for trying to use JOGL2.0? From what I can gather, JOGL2.0 is still in beta, but I am willing to go with it as I want to make use of the latest OpenGL I can.

I have been using the Eclipse IDE and have set up a user library for JOGL, here is a screen shot of the configuration and I have added this user library to my own Eclipse project. the system variable %JOGL_HOME% points to "C:\Users\edacosh\Downloads\JOGL2.0" so that should work fine.

Now, the problem I actually having, when I try to run my code, on the line

GLProfile glp = GLProfile.getDefault();

The code stops with the following message...

Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/common/jvm/JVMUtil
    at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:1145)
    at DiCE.DiCE.<init>(DiCE.java:33)
    at App.<init>(App.java:17)
    at App.main(App.java:12)
Caused by: java.lang.ClassNotFoundException: com.jogamp.common.jvm.JVMUtil
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 4 more

I have also set my project to ensure that it is using jre6 along with jdk6, as I was having some issues.

I hope I have given you enough information to be able to help me. It probably doesn't help that I am rather new to Java, been developing in C++ for ages.

Thanks

© Game Development or respective owner

Related posts about opengl

Related posts about java