Saturday, August 7, 2010

Google Web Tool Kit on 64 bit Ubuntu OS

I see many posts abut trying to run Google Web Toolkit in a 64 bit Linux environment, the toolkit seems to be trying
to use 32 bit libraries when automatically starting Mozilla for testing. 
 
The error looks something like this...
 
** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /opt/app/eclipse/plugins/org.eclipse.platform_3.5.0_155965261/
plugins/com.google.gwt.eclipse.sdkbundle.linux_1.7.1.v200909221731/gwt-linux-1.7.1/
mozilla-1.7.12/libxpcom.so:
libstdc++.so.5: cannot open shared object file: No such file or directory
  
My solution to this was to force install a 32bit library (libstdc++5.so) into my 32 bit Ubuntu OS.
 
sudo dpkg -i --force-architecture ./libstdc++5_3.3.6-17ubuntu1_i386.deb
 
GWT should now be able to start up using the Mozilla libraries.  Good luck! 


No comments: