How to configure GWT 1.4 on Fedora 8?

Installing GWT 1.4 in Fedora 8 is very simple.

Just download GWT 1.4 for Linux from Google and extract it to your home directory. After you extracted it, you can simply test it if this will work well in your system.

Basically to create a new application without using eclipse,

applicationCreator com.sample.client.HelloWorld

After creating the application we tried to run it. There are two ways to execute the application, in the web mode and in the hosted mode.

In web mode, we compile it first and execute the code

sh HelloWorld-compile

And this should run successfully.

How about running the application in the hosted mode?

sh HelloWorld-shell

In Fedora 8 this should run with errors. It says like,

** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /home/Cyrus/gwt-linux-1.4.60/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory

Here is the explanation,

“Fedora 8 ships and uses GCC 4.1. Some applications that were compiled with an older GCC (ex: 3.2) will require compatibility libraries. Make sure to have the following RPM’s installed.

These are NOT included with the Fedora 8 DVD and must be downloaded online (ftp, yum, etc).”

The solution is to install them in your distro.

su -c 'yum -y install compat-libstdc++-33 compat-libstdc++-296'

Good! Try to run your application again in host mode. It will smoothly run then.

About these ads

8 responses »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s