Running Google Web Toolkit (GWT) & Eclipse plugin on Debian 64bit

Google Web Toolkit Logo Here at Mashape, we are working on a dashboard in Google Web Toolkit (GWT)

GWT is a very interesting project. You can find a lot of useful plugins and an active community. The main issue is that you can’t run GWT and its Eclipse plugin in a pure 64bit environment.

Here’s my problem: my laptop was a pure 64 bit environment. (Trust me, it was not easy to keep it so “pure” in its 2 years of life)

To run GWT on Debian 64bit, I had to follow the steps mentioned on this GWT issue forum: http://code.google.com/p/google-web-toolkit/issues/detail?id=135#c57. For your convenience, I’ve included the steps below:

// Install 32bit java
* sudo apt-get install ia32-sun-java6-bin

// Configure Eclipse Galileo (Not sure about other versions of eclipse)
* In eclipse goto: Window -> Preferences.
> Expand Java,
> Click on “Installed JREs”

* You’ll see your current JDK in here (mines was openjdk, my 64bit JDK)
> Click “Add”

* I selected “Standard VM”
> Click “Next”

* In the JRE home field, paste in: /usr/lib/jvm/ia32-java-6-sun
> Click “Finish”

* You’ll see your new JRE added to the list in the preferences.
> Keep the 64bit one selected
> Click “OK” to exit from the preferences window

Thats the JRE added, now we need Google Web Toolkit to use it. (Not sure this is 100%
right method)

* After creating a new project,
> Right click the project in the navigator

* Goto Google -> Web Toolkit
> Click on “Run/Debug Settings”

* Click on the JRE tab
> Select “Alternate JRE” button
> Choose “ia32-java-6-sun*****” from the dropdown box
> Click “OK”, and “OK” again for the “Project Properties window”

Your DONE!

The apt-get install of ia32-sun-java6-bin installed ia32-libs, that contains shared libraries compiled for ia32. However, that was not enough. I was still getting a fatal error with libgtk2.0-0 (not found).

The final step, not listed in the link above, is this:

apt-get install ia32-libs-gtk

Now it works, with some warning, but nothing dangerous :)

CONSUME API NOW

About

Mashape is the largest API hub in the world where you can consume, distribute, monitor and monetize your public and private APIs. Mashape powers 10,000 public & private APIs in every major industry, including finance, healthcare, and entertainment. We’re a Series A startup backed by Jeff Bezos (Amazon), Eric Schmidt (Google), Stanford University and top tier VC firms including Index Ventures, NEA and CRV.

Introducing API Glossary by Mashape

  When it comes to APIs, there’s a lot of jargon out there. The meaning of certain terms isn’t always obvious, and API providers sometimes use different ones to

Using Unirest (Java) for your Android projects

This post will show you how to get Unirest-java running on your Android projects.  Unirest is a lightweight HTTP client library with port available in many languages. This is a

Installing unirest-java with the Maven Assembly Plugin

Managing dependencies for your Java applications is difficult, unless you have Maven!  Maven is an Apache build manager for Java projects.  In this post, we will use a Maven

30+ ways to make REST calls in Node.js, PHP, Python, Rails, Obj-C, .NET, and Java / Android

Here’s a list of resources on how to make REST calls in different languages.  (We also have this list of 40+ tutorials on how to create an API in