wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Linker error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linker error" Watch "Linker error" New topic

Linker error

deepa anandan

Joined: Jun 06, 2006
Posts: 24
I am running an application using widgets in java which accepts temperature value and converts to its celsius.
As soon as I run the program I m reported with the following error

java.lang.UnsatisfiedLinkError: no swt-win32-3139 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
at samplugin.actions.TemperatureConverter.<init>(TemperatureConverter.java:14)
at samplugin.actions.TemperatureConverter.main(TemperatureConverter.java:101)
Exception in thread "main"

please let me know why m I getting Linker error?
Parambir Singh
Ranch Hand

Joined: Sep 05, 2004
Posts: 40

I guess you are trying to use the SWT widget library, but have not added its jar file to the classpath. Doing so should remove the error.

pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
you need the native stuff from SWT in your library path: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.examples/doc-html/swt_manual_setup.html?rev=
I agree. Here's the link: http://aspose.com/file-tools
subject: Linker error
It's not a secret anymore!