Login  Register

Re: Problems with Windows 32bit

Posted by p.stelzer on Oct 21, 2010; 4:33pm
URL: https://forum.jogamp.org/Problems-with-Windows-32bit-tp1744762p1746710.html

I first tried it with WinXP 32bit + Oracle JDK, but couldn't get it to work because of the UnsatisfiedLinkError. Both, the aggregated builds from jogamp and my own builds led to the same.

Later I used Vista 64bit with Oracle JDK 64bit and there was no problem executing the project. Switching to 32bit led to UnsatisfiedLinkError again.

The XP and Vista systems are completely different machines, so I thought there could be a problem with the 32bit jocl.dll. But if it works on your systems, the error might be with me.

The complete exception is as follows:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.jogamp.common.os.WindowsDynamicLinkerImpl.LoadLibraryW(Ljava/lang/String;)J
        at com.jogamp.common.os.WindowsDynamicLinkerImpl.LoadLibraryW(Native Method)
        at com.jogamp.common.os.WindowsDynamicLinkerImpl.openLibraryGlobal(WindowsDynamicLinkerImpl.java:41)
        at com.jogamp.common.os.NativeLibrary.open(NativeLibrary.java:189)
        at com.jogamp.common.os.NativeLibrary.open(NativeLibrary.java:136)
        at com.jogamp.opencl.JOCLJNILibLoader.loadOpenCL(JOCLJNILibLoader.java:19)
        at com.jogamp.opencl.CLPlatform$2.run(CLPlatform.java:96)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.opencl.CLPlatform.initialize(CLPlatform.java:93)
        at com.jogamp.opencl.CLPlatform.getDefault(CLPlatform.java:121)
        at com.jogamp.opencl.CLContext.create(CLContext.java:122)
        at com.jogamp.opencl.CLContext.create(CLContext.java:97)
        at org.yourorghere.JOGAMPTest.main(JOGAMPTest.java:45)

So, I don't understand why it doesn't work with 32bit, but with 64 without problems...

Any suggestions?

Regards,
Philipp