jogl_cg.dll won't load (why??)

There appears to be a dependency problem on my computer with the jogl_gl.dll. It won’t load, and when I use a dependency walker it reports the DLL is fine and nothing is missing on my system!

Anyone experienced this?

The JOGL Demo’s for Cg on the website work FINE with WebStart??? Why??

context = CgGL.cgCreateContext();

This one line of code causes this exception below.


Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\jdk1.5.0\jre\bin\jogl_cg.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at net.java.games.cg.CgGL.<clinit>(CgGL.java:1962)
    at cola3d.shading.c3dCg.glPrepair(c3dCg.java:52)
    at cola3d.nodes.c3dNodeAdaptiveMesh.glPrepair(c3dNodeAdaptiveMesh.java:43)
    at cola3d.render.c3dRender.glSetup(c3dRender.java:249)
    at cola3d.c3dCanvasListener.init(c3dCanvasListener.java:81)
    at cola3d.c3dCanvasListener.display(c3dCanvasListener.java:90)
    at net.java.games.jogl.impl.GLDrawableHelper.display(GLDrawableHelper.java:74)
    at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:221)
    at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:290)
    at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
    at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
    at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:82)
    at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
    at sun.awt.RepaintArea.paint(RepaintArea.java:224)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
    at java.awt.Component.dispatchEventImpl(Component.java:4031)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

You probably need to add the directory containing NVidia’s cg.dll and cgGL.dll to your PATH.

[quote]You probably need to add the directory containing NVidia’s cg.dll and cgGL.dll to your PATH.
[/quote]
Will I have to deploy cg.dll and cgGL.dll with my Java application?

Either that or require that the end user has already installed the Cg toolkit. I don’t know whether other libraries from the Cg installation would be needed aside from cg.dll and cgGL.dll.