mchr3k / org.intrace

Java tracing agent and live trace client
http://mchr3k.github.com/org.intrace/
73 stars 18 forks source link

swt-gtk library issue #32

Open danzaconloros opened 10 years ago

danzaconloros commented 10 years ago

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 commented 10 years ago

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