Tuesday 10 June 2008

GWT problem and solutioon

I started to investigate GWT and I stumbled across a problem immediately with hello world application.

While trying to run Hello-Shell I got an exception:

mati@mati-ubuntu:~/local/gwt-linux-1.5.0/samples/Hello$ ./Hello-shell
** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /home/mati/local/gwt-linux-1.5.0/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at com.google.gwt.dev.shell.moz.MozillaInstall.load(MozillaInstall.java:190)
at com.google.gwt.dev.BootStrapPlatform.init(BootStrapPlatform.java:44)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:355)
mati@mati-ubuntu:~/local/gwt-linux-1.5.0/samples/Hello$ mati@mati-ubuntu:~/local$ #

After few minutes of blogging it turns out that on Ubuntu 8.04 you have to install an additional package:

sudo apt-get install libstdc++5

that have resolved my problem!

3 comments:

Unknown said...

O, widzę że zacząłeś używać ubuntu :)

winnetou said...

uzywam od dawna ubuntu, czasami mi troche zajmuje 'zainstalowanie' go, bo jak sie zainstaluje unixa to w wielu firmach musisz sobie sam radzic z takimi rzeczami jak outlook integration czy ldap integration. Mala ilosc firm ma kulture linuxa from day 1.

Anonymous said...

Thank you very much. I had exactly the same problem after moving my project from Mac to Ubuntu 8.04