Skip to main content



      Home
Home » Newcomers » Newcomers » no swt-gtk-3740 in java.library.path
no swt-gtk-3740 in java.library.path [message #1012878] Fri, 22 February 2013 06:20 Go to next message
Eclipse UserFriend
Hi all,

I'm trying to run some java application on raspberry pi, and stuck on one step. When I'm starting application I get:

at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Exception in thread "MX - W" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk-3740.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk.so
/home/pi/.swt/lib/linux/arm/libswt-gtk-3740.so: /home/pi/.swt/lib/linux/arm/libswt-gtk-3740.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)

I have no idea from where version 3740 comes from, as I have 3833 installed. I tried to create symbolic link like:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/arm/

and then:

pi@raspberrypi ~/.swt/lib/linux/arm $ ln -s libswt-gtk-3833.so libswt-gtk-3740.so
pi@raspberrypi ~/.swt/lib/linux/arm $ ln -s libswt-pi-gtk-3833.so libswt-pi-gtk-3740.so


but then I have:
Exception in thread "MX - W" java.lang.UnsatisfiedLinkError: org.eclipse.swt.internal.gtk.OS._GDK_DISPLAY()I


I will appreciate your help.

Thank you and have a good day.

Regards,
Leszek




Re: no swt-gtk-3740 in java.library.path [message #1220857 is a reply to message #1012878] Sat, 14 December 2013 09:33 Go to previous message
Eclipse UserFriend
The question is old but since this is the first hit in my particular Google search: The generic answer is here:

http://www.eclipse.org/swt/faq.php#missingdll

In my particular case on Ubuntu 12.04 I do this:

$ locate libswt-gtk

Which returns as one of the entries

/usr/lib/jni/libswt-gtk-3740.so

I then do (this is bash shell):

$ export LD_LIBRARY_PATH=/usr/lib/jni

If you're unfortunate enough to be in tc-shell (tcsh), it would be

$ setenv LD_LIBRARY_PATH /usr/lib/jni

For me, that solves it. I now type:

$ eclipse &

And all works as expected.
Previous Topic:Share workspace between Mac OSX and Windows 7?
Next Topic:DB/C DX Development Toolkit
Goto Forum:
  


Current Time: Fri Jun 20 07:38:25 EDT 2025

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

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

Back to the top