I have started to take a closer look at Google Web Toolkit (GWT). It looks very nice giving me the possibility to debug AJAX-clients and removing the need for quirks for different browser (read MS IE).
Unfortunatly GWT is only shiped as 32-bit and I am running a 64-bit Ubuntu 8.04. The SVN-repository of GWT include some pre-compiled libraries which are compiled for 32-bit Linux.
The easy way is to download and install a 32-bit Java from Sun. Following the GWT getting started got me up and running. But I wanted to use my usual Eclipse in 64-bit version.
So I started Eclipse and imported my lab project according to the instructions. Then it was time for some settings.
First, add the 32-bit Java as an JRE to Eclipse:
- Open the Window menu and select Preferences.
- Select Java and then Installed JREs in the tree menu to the left.
- Select add and pointed out where you installed your 32-bit Java and closed all the dialogs.
- Right clicked on your imported GWT-project at select Properties.
- Chose Run/Debug settings and then the only existing launcher for the project and finaly edit.
- In the new dialog that show up; select the JRE tab. Click on Alternate JRE and select your 32-bit java in the drop down.