swt-gtk library issue
Opened this issue · 1 comments
i get this exception when i run my program:
run:
Loaded InTrace Agent.
InTrace Agent listening on port 9123
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3659 in java.library.path
no swt-gtk in java.library.path
Can't load library: C:\Users\quique\AppData\Local\Temp\swtlib-64\swt-gtk-3659.dll
Can't load library: C:\Users\quique\AppData\Local\Temp\swtlib-64\swt-gtk.dll
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.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at dupin.VisualVM.client.gui.InTraceStandaloneUI.main(InTraceStandaloneUI.java:25)
Java Result: 1
I am using Netbeans and windows 8 (64bits)
Why Java is trying to load a gtk library for windows?
I solve my problem.
First of all, the libraries swt-*.jar that came with the proyect must be deleted.
Then you has to download swt-4.3-win32-win32-x86_64 from the eclipse site.
Include the library swt.jar (located inside swt-4.3-win32-win32-x86_64.rar ) in your proyect.
After that, i finally get the things worked!
Danza