JOCLSimpleGL3, Catched FileNotFoundException

Hi,

I am trying to run the JOCLSimpleGL3 example but I get this exception:

run:
Catched FileNotFoundException: C:\Users\gbarbieri\Downloads\jogamp-all-platforms\jar\gluegen-natives-
windows-amd64.jar (Das System kann die angegebene Datei nicht finden), while TempJarCache.bootstrapNativeLib() of jar:file:/C:/Users/gbarbieri/Downloads/jogamp-all-
platforms/jar/gluegen-natives-windows-amd64.jar!/ (file:/C:/Users/gbarbieri/Downloads/jogamp-all-
platforms/jar/ + gluegen-natives-windows-amd64.jar)
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.7.0_02\jre\bin\gluegen-rt.dll: Can't find dependent libraries
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
	at java.lang.Runtime.loadLibrary0(Runtime.java:845)
	at java.lang.System.loadLibrary(System.java:1084)
	at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:442)
	at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:59)
	at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:90)
	at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:328)
	at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:390)
	at com.jogamp.common.os.Platform.loadGlueGenRTImpl(Platform.java:251)
	at com.jogamp.common.os.Platform.access$000(Platform.java:57)
	at com.jogamp.common.os.Platform$1.run(Platform.java:186)
	at com.jogamp.common.os.Platform$1.run(Platform.java:183)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.common.os.Platform.<clinit>(Platform.java:183)
	at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82)
	at org.jocl.samples.JOCLSimpleGL3.main(JOCLSimpleGL3.java:45)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

Libraries are:

  • JOCL-0.1.8
  • jogl-all.tar
  • gluegen.jar

I cannot understand why it is looking for the file “gluegen-natives-windows-amd64.jar”…

Solved, it was enough to substitute gluegen.jar with gluegen-rt.jar

Yes, ‘rt’ presumably stands for ‘runtime’. But it is usually also necessary to add the JARs containing the repsective native libraries for the system.