Annoying libswt-pi-gtk problem

11 views
Skip to first unread message

Victor

unread,
Apr 16, 2008, 11:50:40 AM4/16/08
to Google Web Toolkit
Hello,

I have the following problem trying to launch my GWTShell in eclipse:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
library: /home/victor/workspace/Irris/resources/WEB-INF/lib/libswt-pi-
gtk-3235.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
at com.google.gwt.dev.GWTShell.<clinit>(GWTShell.java:264)

I couldn't find help searching on the Internet.

My OS is ubuntu (Linux victor-zenika 2.6.22-14-generic #1 SMP Tue Feb
12 07:42:25 UTC 2008 i686 GNU/Linux), my eclipse version is 3.3.0, and
I tried it with java5 and java6.

Thanks,

Victor

kilkenny

unread,
Apr 17, 2008, 2:44:13 AM4/17/08
to Google Web Toolkit
Hi Victor

Try to set the 'LD_LIBRARY_PATH' in the Eclipse run configuration. In
Eclipse go to 'Run' => 'Open Run Dialog...', choose the configuration
you use to start your application from the tree on the left side. Then
go to the tab 'Environment' and add a new variable called
'LD_LIBRARY_PATH' that points to the 'mozilla-1.7.12' folder inside
your GWT installation.

Regards, Adrian

Victor

unread,
Apr 17, 2008, 3:37:50 AM4/17/08
to Google Web Toolkit
Hi,

Thank you for answering. I also found that tip on a blog, but I
couldn't find where to add the variable.
Now, it is set, but I still have the same problem. Is that correct:
http://images3.hiboox.com/images/1608/da793ecg.png ?

The weird thing is that my previous project still runs correctly, but
this one fails.

Victor

Victor

unread,
Apr 17, 2008, 4:40:56 AM4/17/08
to Google Web Toolkit
Hello again,

I solved my problem removing all the libraries of my project. Now it
won't compile, but I can proceed.

On 17 avr, 08:44, kilkenny <a.bue...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages