This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at org.eclipse.swt.internal.Library.loadLibrary(
at org.eclipse.swt.internal.win32.OS.<clinit>(
at org.eclipse.swt.widgets.Display.<clinit>(
at samplugin.actions.TemperatureConverter.<init>(
at samplugin.actions.TemperatureConverter.main(
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:
I agree. Here's the link:
subject: Linker error
It's not a secret anymore!