| Author |
Re: [X3D]Problem with SimpleSAIDemo
|
|
| Roberto 2006-12-06, 7:36 pm |
|
"Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
> Hope that helps. If not, please reply and let me know what Xj3D version
> your using.
Thank u very much for your answer.
I solved the previous problem (caused by the bad setup of the classpath) but
now another one occurs:
No skin defined in xj3d-skin.properties
Producing default properties.
Exception in thread "main" java.lang.NoClassDefFoundError:
net/java/games/jogl/G
LEventListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at
org.web3d.ogl.browser.X3DOGLBrowserFactoryImpl.createComponent(X3DOGL
BrowserFactoryImpl.java:338)
at
org.web3d.x3d.sai.BrowserFactory.createX3DComponent(BrowserFactory.ja
va:210)
at SimpleSAIDemo.<init>(SimpleSAIDemo.java:42)
at SimpleSAIDemo.main(SimpleSAIDemo.java:68)
I'm using Xj3D 1.0
What's the solution to this problem?
Thank very much for your help!
| |
| Rex Melton 2006-12-06, 7:36 pm |
| Roberto wrote:
> "Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
>
>
>
> Thank u very much for your answer.
> I solved the previous problem (caused by the bad setup of the classpath) but
> now another one occurs:
> No skin defined in xj3d-skin.properties
> Producing default properties.
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/java/games/jogl/G
> LEventListener
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 3)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> at
> org.web3d.ogl.browser.X3DOGLBrowserFactoryImpl.createComponent(X3DOGL
> BrowserFactoryImpl.java:338)
> at
> org.web3d.x3d.sai.BrowserFactory.createX3DComponent(BrowserFactory.ja
> va:210)
> at SimpleSAIDemo.<init>(SimpleSAIDemo.java:42)
> at SimpleSAIDemo.main(SimpleSAIDemo.java:68)
>
> I'm using Xj3D 1.0
> What's the solution to this problem?
> Thank very much for your help!
>
>
>
The jogl library is either - not on your classpath, or not installed on
your system. The set of requires libraries is listed here:
http://www.xj3d.org/tutorials/xj3d_application.html
also note that jogl requires a native library.
-Rex
| |
| Roberto 2006-12-06, 7:36 pm |
|
"Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
> The jogl library is either - not on your classpath, or not installed on
> your system. The set of requires libraries is listed here:
>
> http://www.xj3d.org/tutorials/xj3d_application.html
>
> also note that jogl requires a native library.
I downloaded the jogl zip file but i haven't a setup.exe file. I have copied
the files in zip file in the directories /bin and /lib of my XJ3d directory.
I also modified my path and classpath variables including the directories
/bin and /lib but the problem persits.
Have you other idea?
Thanks very much
| |
| Roberto 2006-12-06, 7:36 pm |
|
"Roberto" <gioeroby@NO_*SPAM*libero.it> ha scritto nel messaggio
> I downloaded the jogl zip file but i haven't a setup.exe file. I have
> copied the files in zip file in the directories /bin and /lib of my XJ3d
> directory. I also modified my path and classpath variables including the
> directories /bin and /lib but the problem persits.
I also copied these file in SDK and JRE directory. Perhaps I nedd of the
jogl package...may be?
| |
| Rex Melton 2006-12-06, 7:36 pm |
| Roberto wrote:
> "Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
>
>
>
> I downloaded the jogl zip file but i haven't a setup.exe file. I have copied
> the files in zip file in the directories /bin and /lib of my XJ3d directory.
> I also modified my path and classpath variables including the directories
> /bin and /lib but the problem persits.
> Have you other idea?
> Thanks very much
>
>
>
Perhaps a version mismatch between the Xj3D and jogl releases? jogl was
repackaged for the JSR-231 releases. If you downloaded one of the JSR
releases and used it with Xj3D 1.0 - that would cause a no class def
found exception even with the jogl jar on the classpath.
If the Xj3D you have is from a development snapshot, or the release
package - there should be compatible jogl libraries included. If you
have downloaded the Xj3D source and then loaded the jogl package
separately - the last release build before the JSR crossover should be
compatible.
-Rex
| |
| Roberto 2006-12-06, 7:36 pm |
|
"Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
>If you have downloaded the Xj3D source and then loaded the jogl package
>separately - the last release build before the JSR crossover should be
>compatible.
What solution could solve my problem?
| |
| Roberto 2006-12-06, 7:36 pm |
|
"Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
> If you have downloaded the Xj3D source and then loaded the jogl package
> separately - the last release build before the JSR crossover should be
> compatible.
Instead...I think I need the package net.java.games.jogl.* but i haven't it.
I'm looking for this package but i don't find it. If you have this file, can
you send me it by email please?
Thanks!
| |
| Roberto 2006-12-06, 7:36 pm |
|
"Rex Melton" <NoSpam_rex.melton_NoSpam@comcast.net> ha scritto nel messaggio
>If you have downloaded the Xj3D source and then loaded the jogl package
>separately - the last release build before the JSR crossover should be
>compatible.
Perhaps you have reason beacusa if I unjar the file I found a
javax/media/opengl path to find GLEventListener.class instead of
net/javagames/jogl.
So, I try to download an oldest version oj jogl....pray for me :-)
| |
| Roberto 2006-12-06, 7:36 pm |
|
"Roberto" <gioeroby@NO_*SPAM*libero.it> ha scritto nel messaggio
> Perhaps you have reason beacusa if I unjar the file I found a
> javax/media/opengl path to find GLEventListener.class instead of
> net/javagames/jogl.
> So, I try to download an oldest version oj jogl....pray for me :-)
GREAT!
I installed an older version of JOGS and now java project works!
Thank you for your precious help!
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |