Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Unsatisfied link error while running SWT standalone application.
Unsatisfied link error while running SWT standalone application. [message #443971] Tue, 05 October 2004 04:48 Go to next message
Anand Narasimhan is currently offline Anand NarasimhanFriend
Messages: 104
Registered: July 2009
Senior Member
Hi,

I get the following error while running a SWT application.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-motif-3062 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
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:10 0)
at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
at org.eclipse.swt.graphics.Device.<clinit>(Device.java:89)
at example.SWTExample.main(SWTExample.java:46)

What do I need to do to fix this problem?

Thanks
Anand

--
____________________________________________________________ ______________________

Anand Narasimhan
anandn@cisco.com
Re: Unsatisfied link error while running SWT standalone application. [message #443975 is a reply to message #443971] Tue, 05 October 2004 08:19 Go to previous messageGo to next message
Andreas Niemeyer is currently offline Andreas NiemeyerFriend
Messages: 40
Registered: July 2009
Member
Anand Narasimhan wrote:
> Hi,
>
> I get the following error while running a SWT application.
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-motif-3062 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
> 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:10 0)
> at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
> at org.eclipse.swt.graphics.Device.<clinit>(Device.java:89)
> at example.SWTExample.main(SWTExample.java:46)
>
> What do I need to do to fix this problem?
>
> Thanks
> Anand
>

put the swt libs (*.jar) in your classpath and call your application
with `-Djava.library.path' param, where your system specific libs
resists, e.g.

java -Djava.library.path=lib/swt-3.0M9-solaris-motif

alternativly copy these libs in the directory where your main class will
executed.

Regards,
Andreas
Re: Unsatisfied link error while running SWT standalone application. [message #443984 is a reply to message #443971] Tue, 05 October 2004 12:56 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See the following SWT FAQ entries:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingdll
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missinglibXm

"Anand Narasimhan" <anandn@cisco.com> wrote in message
news:cjt8ot$85p$1@eclipse.org...
> Hi,
>
> I get the following error while running a SWT application.
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-motif-3062 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
> 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:10 0)
> at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
> at org.eclipse.swt.graphics.Device.<clinit>(Device.java:89)
> at example.SWTExample.main(SWTExample.java:46)
>
> What do I need to do to fix this problem?
>
> Thanks
> Anand
>
> --
> ____________________________________________________________ ______________________
>
> Anand Narasimhan
> anandn@cisco.com
Previous Topic:Launch program and pass parameters to it
Next Topic:PackageImpl error when generated
Goto Forum:
  


Current Time: Thu Apr 25 01:47:51 GMT 2024

Powered by FUDForum. Page generated in 0.03003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top