Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swt-gtk library issue #32

Open
danzaconloros opened this issue Oct 16, 2013 · 1 comment
Open

swt-gtk library issue #32

danzaconloros opened this issue Oct 16, 2013 · 1 comment

Comments

@danzaconloros
Copy link

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?

@danzaconloros
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant