• Post Reply Bookmark Topic Watch Topic
  • New Topic

jogl installation  RSS feed

 
gon to
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi you all,
i got some problems to get jogl running. i have a simple example programm. at runtime it throws this exception:

Warning: The class that you specificed for the physics manager is not a valid instance of PhysicsManager
Exception in thread "main" java.lang.NoClassDefFoundError: net/java/games/joal/OpenALException
at org.web3d.vrml.renderer.ogl.browser.OGLBrowserCanvas.setupAviatrix(OGLBrowserCanvas.java:1030)
at org.web3d.vrml.renderer.ogl.browser.OGLBrowserCanvas.initialize(OGLBrowserCanvas.java:715)
at org.web3d.ogl.browser.X3DBrowserJPanel.<init>(X3DBrowserJPanel.java:413)
at org.web3d.ogl.browser.X3DOGLBrowserFactoryImpl.createComponent(X3DOGLBrowserFactoryImpl.java:338)
at org.web3d.x3d.sai.BrowserFactory.createX3DComponent(BrowserFactory.java:210)
at SimpleSAIDemo.<init>(SimpleSAIDemo.java:38)
at SimpleSAIDemo.main(SimpleSAIDemo.java:64)


whats wrong with my jogl? i am using jdk 1.5 and put the jogl.jar to the /lib/ext directory and the jogl.dll to the /bin.

thx in advance!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Doesn't look like a simple little example to me; it seems to be using all sorts of packages besides just jogl. In particular, this failure is due to the fact that joal, the Java OpenAL bindings, is missing, not jogl the OpenGL bindings, which is a separate download. The joal homepage is here. The best thing to do would be to carefullly read the documentation you got with this "simple little example", and make sure you've installed all the prerequisites, because there may be more.
 
gon to
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, "simple" is indeed a little understated for this example...
ok, having installed joal i still get another jogl-error. and another (simpler) example which only uses the jogl lib throws the same error at runtime, so i assume that it is a jogl problem. this is my error:

Exception in thread "Thread-18" java.lang.UnsatisfiedLinkError: CreateDummyWindow
at net.java.games.jogl.impl.windows.WGL.CreateDummyWindow(Native Method)
[ January 21, 2006: Message edited by: gon to ]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, now the problem is that the native libraries (the DLL files, if you're on Windows) aren't being found. I believe that if you've installed JOGL as a standard extension in jre/lib/ext, then you ought to put jogl.dll in (JDKDIR)/jre/lib/i386 .
 
gon to
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, that was the problem. i downloaded a jogl.dll somewhere instead of generating it from the natives-jogl-win32.jar. now it works! thx for your help!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!