I have a .jar
that I complied and exported on Windows
via Eclipse. It runs perfectly and now I wish to run it on a Solaris 10
machine.
When I attempt to run it on Solaris
, however, I get a java.lan.UnsatisifiedLinkError
complaining it could not load a SWT
library.
Exception in thread "main" java.lang.UnsatisifiedLinkError: Could not load SWT library. Reasons:
no swt-win32-3650 in java.library.path
no swt-win32 in java.library.path
Can't load library: /var/tmp/swtlib-64/libswt-win32-3650.so
Can't load library: /var/tmp/swtlib-64/libswt-win32-3650.so
Why is Java
looking for libswt-win32
libraries? Am I creating the .jar
wrong?
Do I need to export the .jar
differently when I build on Windows
since its now intended to be run from Solaris
?