I am just trying to run a simple “hello world” type JOGL example. It (of course) runs fine in netbeans, but at the command line it is failing.
I am executing with: java -jar name.jar
I get back: Exception in thread “main” java.lang.NoClassDefFoundError: net/java/games/jogl/GLCapbilities
All the main includes is:
System.loadLibrary(“jogl”);
System.out.println(“Hello World! (The native libraries are there.)”);
GLCapabilities caps = new GLCapabilities();
System.out.println(“Hello JOGL! (The jar appears to be available.)”);
It will run in my IDE (netbeans) but not from the command-line. I have my CLASSPATH=".;C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext\jogl.jar". Trying to set another copy at the command-line with “-cp …” changes nothing.
Any ideas?
Thanks in advance for your help!