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 ? |
This post was updated on .
Hello,
all i can say is it should work :) NativeWindowFactory is in nativewindow.all.jar. If the jar is in the classpath it should also be found at runtime. we recently got notified about corrupted jar files on the webserver jogamp.org. Maybe its safer to download the files directly from the build server for a while: http://jogamp.org/chuck/job/jogl/label=linux-x86_32/lastSuccessfulBuild/artifact/build/ btw your english is good, no reason to be sorry :) -michael On 09/11/2010 10:27 AM, prunkdump [via jogamp] wrote: > 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 ? > > > > ------------------------------------------------------------------------ > View message @ > http://jogamp.762907.n3.nabble.com/Another-java-lang-NoClassDefFoundError-tp1456525p1456525.html > > To start a new topic under jogamp, email > ml-node+762907-380265080-8131@n3.nabble.com > To unsubscribe from jogamp, click here > <http://jogamp.762907.n3.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=762907&code=YmllbmF0b3JAYXJjb3IuZGV8NzYyOTA3fDQxNTEwMDY0OA==>. > > -- - - - - http://michael-bien.com |
Thanks for the reply !
But unfortunately, after the download of jogl-2.0-pre-20100910-linux-i586.zip on the build server, the problem remain the same. And yet the NativeWindowFactory is in nativewindow.all.jar. It appears when I browse classes. Strange... I don't know where search for this problem... |
Solved !
The problem : 1) I have installed the ubuntu package libjogl-java 2) And next removed it with "sudo apt-get autoremove libjogl-java" 3) But an "jogl.all.jar" stay in the jvm directory. 4) Once removed, the program works. Thanks ! |
thank you for posting your solution. Classpath issues are very common these days :) regards, michael On 09/13/2010 10:24 AM, prunkdump [via jogamp] wrote: Solved ! -- - - - - http://michael-bien.com |
Free forum by Nabble | Edit this page |