Login  Register

Re: Another java.lang.NoClassDefFoundError

Posted by Michael Bien on Sep 11, 2010; 4:13pm
URL: https://forum.jogamp.org/Another-java-lang-NoClassDefFoundError-tp1456525p1457721.html

  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