GWT Hosted Mode on 64 Bit Ubuntu

Here's how I got GWT 1.7 Hosted Mode to work on my 64 bit Ubuntu Karmic Koala 9.10 laptop. These instructions should also work on Jaunty (9.04)

source: from this blog

  1. Install ia32-sun-java6-bin:
    1. sudo apt-get install ia32-sun-java6-bin
    sudo apt-get install ia32-sun-java6-bin
  2. Make sure the default Java installation remains the 64 bit one
    1. sudo update-java-alternatives --set java-6-sun
    sudo update-java-alternatives --set java-6-sun
  3. Download libstdc++5 for IA32 from Jaunty repos: http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb
  4. Extract the libstdc++.so.5 file
    1. dpkg-deb --fsys-tarfile libstdc++5_3.3.6-17ubuntu1_i386.deb | tar -O --extract './usr/lib/libstdc++.so.5.0.7' > libstdc++.so.5
    dpkg-deb --fsys-tarfile libstdc++5_3.3.6-17ubuntu1_i386.deb  | tar -O --extract './usr/lib/libstdc++.so.5.0.7' > libstdc++.so.5
  5. Move the extracted file to /usr/lib32
    1. sudo mv libstdc++.so.5 /usr/lib32
    sudo mv libstdc++.so.5 /usr/lib32
  6. Run
    1. sudo ldconfig
    sudo ldconfig
  7. Start GWT:
    1. JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun mvn gwt:run

Popular Posts