logo back up home forward   further reading more topics »

mjbWorld - java.lang.NoClassDefFoundError: net/java/games/jogl/GL

By: nobody ( Nobody/Anonymous )
file Help running mjbWorld  
2003-08-22 10:11

Hi!
I just installed mjbWorld (mjbWorld_jogl_runtime_517.zip) and I'm trying to run some examples, aplication window opens
I choosed "paramters only" and try to load box.wrl.
... and nothing happens, nothing on tree view.
On console window prints long message witch start like this : java.lang.NoClassDefFoundError: net/java/games/jogl/GL
( I have Windows 2000, java 1.4.2, java3D 1.3.1)
please help
Karol

By: martinbaker ( Martin Baker )
file RE: Help running mjbWorld  
2003-08-22 15:33

Hi Karol,

Sorry, this is the first release where I have used JOGL instead of Java3D and so I dont have much experience of using it yet.

Since I received you message I have been doing some tests and I found that the jogl.dll file needs to be copied to the library path. (I originally thought that it was good enough to have it in the same directory as the program) In my case this is in the C:\j2sdk1.4.0_01\jre\lib\ext directory, do you have lib/ext subdirectories where you have installed Java? If so please could you try copying jogl.dll there?

I am not sure this is the error that you are seeing as I got the error:
java.lang.UnsatisfiedLinkError: no jogl in java.library.path
but I have not been able to reproduce the error that you got.

If this does not work you could try coping the jogl.dll and jogl.jar files into the following subdirectories under the directory where the sdk or jre is installed.

Win32
Jre/bin/ : jogl.dll
Jre/lib/ext/ : jogl.jar

Linux:
Jre/lib/i386/ : libjogl.so
Jre/lib/ext/ : jogl.jar
(Usually JAVA_HOME points to /bin/usr/lib/java2/ )

Please let me know how you get on, sorry about these problems.

Martin


By: nobody ( Nobody/Anonymous )
file Help running mjbWorld  
2003-08-25 10:39

I copied jogl.jar to /lib/ext/ and it started to work, thanks
Karol

 


metadata block
see also:

 

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

 

cover Beginning Java 2 SDK 1.4 Edition - A good book for learning java

 

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

cover JBuilder - There is also a free version of Jbuilder at borland website . However its licence conditions are quite restrictive so you may prefer another java IDE.

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

progam

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved - privacy policy.