Reputation: 3581
Whenever trying to run a Java application. I'm experiencing this stacktrace error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
Any ideas how to resolve this issue?
Current Environment Configuration
Upvotes: 0
Views: 1462
Reputation: 533740
You need to 64-bit SWT library to load it into a 64-bit process.
A 64-bit process (JVM or not) cannot load a 32-bit shared library in Windows, UNIX or MacOSX. This is a limitation of the OS not the JVM. Basically, you can't pass a 64-bit address to a 32-bit library, so they can't interact with one another.
Upvotes: 1