Another java.lang.NoClassDefFoundError
Posted by prunkdump on Sep 11, 2010; 8:27am
URL: https://forum.jogamp.org/Another-java-lang-NoClassDefFoundError-tp1456525.html
Hi ! (Sorry for my English, I'm French)
I have two development station :
-one with gentoo linux
-one with ubuntu
I have installed jogl with the following procedure :
1) I've downloaded jogl-2.0-pre-20100907-linux-i586.zip
2) unzipped it in /home/prunkdump/java
3) exported CLASSPATH=./:/home/prunkdump/java/jogl-2.0-pre-20100907-linux-i586/lib/jogl.all.jar:/home/prunkdump/java/jogl-2.0-pre-20100907-linux-i586/lib/gluegen-rt.jar:/home/prunkdump/java/jogl-2.0-pre-20100907-linux-i586/lib/nativewindow.all.jar:/home/prunkdump/java/jogl-2.0-pre-20100907-linux-i586/lib/newt.all.jar
4) exported LD_LIBRARY_PATH=/home/prunkdump/java/jogl-2.0-pre-20100907-linux-i586/lib
The source code of the second tutorial compile well on the two station (javac SimpleScene.java). But when I launch SimpleScene :
-The program work on gentoo ! with a warning :
libEGL warning: Could not open driver egl_softpipe.so (egl_softpipe.so: cannot open shared object file: No such file or directory)
libEGL warning: The driver can be overridden by setting EGL_DRIVER
-The program doesn't work on ubuntu with this error message :
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/nativewindow/NativeWindowFactory
at javax.media.opengl.GLProfile.initProfiles(GLProfile.java:855)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:59)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:989)
at java.security.AccessController.doPrivileged(NativeMethod)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:987)
at SimpleScene.main(SimpleScene.java:8)
Caused by: java.lang.ClassNotFoundException: javax.media.nativewindow.NativeWindowFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccesController.doPrivileged(Native Method)
at jave.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 6 more
The two station have exactly the same java and javac version.
An idea ? Where can I search ?