Create project:
webAppCreator -out Calculator com.javanus.gwtip.calculator.client.Calculator
Run hosted version:
ant hosted
Running web mode:
ant build
launch application html
Make a war file:
jar cfM myapp.war .\war\*
Create project:
webAppCreator -out Calculator com.javanus.gwtip.calculator.client.Calculator
Run hosted version:
ant hosted
Running web mode:
ant build
launch application html
Make a war file:
jar cfM myapp.war .\war\*
I tried to launch simple GWT example. I followed google tutorial at
Getting Started Tutorial.
Everything work fine until I ran StockWatcher-shell. I got the following error:
[root@localhost StockWatcher]# ./StockWatcher-shell
** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /usr/bin/gwt-linux-1.5.3/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at com.google.gwt.dev.shell.moz.MozillaInstall.load(MozillaInstall.java:190)
at com.google.gwt.dev.BootStrapPlatform.init(BootStrapPlatform.java:49)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:354)
I tried to define another browser and I modified /usr/bin/gwt-linux-1.5.3/mozilla-hosted-browser.conf but unfortunatelly I got the same error.
I found out that libstdc++.so.5 is missing.
[root@localhost applications]# rpm -q –whatprovides libstdc++.so.5
no package provides libstdc++.so.5
[root@localhost applications]# yum whatprovides libstdc++.so.5
compat-libstdc++-33.i386 : Compatibility standard C++ libraries
[root@localhost applications]# yum install compat-libstdc++-33
./StockWatcher-shell works fine after libstdc installation.