Articles

Navigation ( archives ›› 2009 ›› May ›› 13 ›› Google App Engine Plugin for Eclipse in Ubuntu )

Google App Engine Plugin for Eclipse in Ubuntu

Posted on May 13, 2009, 7:36 pm EST

Installing Google Plugin for Eclipse in Ubuntu should be easy, but it requires some work to make it actually "work". I am using Ubuntu 9.04 Jaunty which got released this month.

Installing latest Eclipse version in Ubuntu

First of all, Ubuntu 9.04 ships with Eclipse 3.2.2 IDE, to run Google Plugin, it requires you to have at least an Eclipse 3.3 version. I installed the latest, 3.4 Eclipse IDE.

To do that, I did not use the Ubuntu synaptic repository, I just visited http://www.eclipse.org/downloads/ and downloaded "Eclipse IDE for Java Developers". I extracted it and then ran eclipse. Now I have the latest version of Eclipse installed. (Eclipse 3.4.2 on Ubuntu Jaunty)

Installing the plugin

I followed the following documentation http://code.google.com/eclipse/docs/install-eclipse-3.4.html, since I am familiar with installing Eclipse plugins, I added http://dl.google.com/eclipse/plugin/3.4 as a Site to my available software under Help > Software Updates.

Running a Google Web Applicaiton

To create your first Web Application, select File > New > Web Application Project from the Eclipse menu.

In the New Web Application Project wizard, enter a name for your project and a java package name, e.g., com.example.mywebapp. Click Finish.

You now have an App Engine and GWT-enabled web application!

How to run your application! (And fix the initial error!)

Right-click on your web application project and select Debug As > Web Application from the popup menu. Oh wait, an error occurs:

CODE:
ubuntu java.lang.UnsatisfiedLinkError: ubuntu java.lang.UnsatisfiedLinkError: com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory

The reason why this error exists is because in order to run a Google Web Application, we need libstdc++5, you could install it within your Synaptic Package manager or via aptitude:

CODE:
sudo apt-get install libstdc++5

Run it again, and it will work fine!

Have fun programming! Java on App Engine!

About this Article:

Comments (3) - Add yours, or View the replies

Categoy (Java)

Views (5920)

Digg it: Digg this article