Problems running Java SWT application. Is this something to do with 64 vs 32-bit libraries?
Posted
by ?????
on Stack Overflow
See other posts from Stack Overflow
or by ?????
Published on 2010-05-16T07:45:41Z
Indexed on
2010/05/16
7:50 UTC
Read the original article
Hit count: 467
I'm getting started with SWT
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-cocoa-3557 or swt-cocoa in swt.library.path, java.library.path or the jar file
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.internal.cocoa.NSThread.isMainThread(Unknown Source)
at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.getDefault(Unknown Source)
at com.astrobetty.getotagdesktop.MainUIWindow.main(MainUIWindow.java:110)
I've carefully followed the directions here http://www.eclipse.org/swt/eclipse.php
I can see libswt-awt-cocoa-3557.jnilib, libswt-cocoa-3557.jnilib, libswt-pi-cocoa-3557.jnilib clearly listed under "Referenced Libraries" in my Eclipse package explorer. Presumably, that should make them available on the classpath when I select the java module that contains "main" and do a "run as" application.
What's the problem? I suspect it may be related to 64-bit vs 32-bit VMs....
© Stack Overflow or respective owner