• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linker error

 
deepa anandan
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
Android Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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=1.1.2.2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic