Exception in thread "main" java.lang.ExceptionInInitializerError

1,436 views
Skip to first unread message

JG

unread,
May 17, 2006, 10:10:39 PM5/17/06
to Google Web Toolkit
I'm running Fedora Core 4. I successfully installed eclipse via rpm
repository / yum, however I am unable to get java running properly.

This is the error:

./KitchenSink-shell
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Caused by: java.lang.RuntimeException: Installation problem detected,
please reinstall GWT
at com.google.gwt.dev.util.Utility.computeInstallationPath()
(Unknown Source) at com.google.gwt.dev.util.Utility.getInstallPath()
(Unknown Source)
at com.google.gwt.dev.util.arg.GWTAppBase.<clinit>() (Unknown
Source)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
...3 more
Caused by: java.io.IOException: Cannot determine installation
directory; apparently not running from a jar
at com.google.gwt.dev.util.Utility.computeInstallationPath()
(Unknown Source) ...6 more

I'm guessing that perhaps I don't have the JEE 1.4 SDK installed
properly, but when I run the JEE installer, it hangs on:

./j2eesdk-1_4_03-linux.bin -console
.. blah blah ..
Installation Directory [/opt/SUNWappserver] {"<" goes back, "!" exits}:
<ENTER>
<HANG>

Any help is appreciated!

Jay

musachy

unread,
May 17, 2006, 10:15:25 PM5/17/06
to Google Web Toolkit
If you installed eclipse with yum you are probably using the native
version(compiled with gcj for linux). Try downloading the regular one
from eclipse.org and install the jre.

JG

unread,
May 17, 2006, 10:33:52 PM5/17/06
to Google Web Toolkit
Before I started installing anything, I had a successful running
jre1.5.0_06 installation. I received this error under that condition -
is that to be expected as well?

musachy

unread,
May 17, 2006, 11:41:00 PM5/17/06
to Google Web Toolkit
Sorry for my previous message, your problem has nothing to do with
eclipse. When you type java -version on the shell, what do you get? I
think your "java" is pointing to gcj's "java" executable, instead of
sun's implementation. If that is the case you can delete "java" from
/usr/bin and create a soft link to sun's "java" executable.

JG

unread,
May 18, 2006, 1:49:31 AM5/18/06
to Google Web Toolkit
This is indeed the case, and I thank you.

I have also found that the J2EE 1.4 SDK installer does work, but there
is a VERY long delay after it creates /opt/blah..

Thanks again for your help. I'll complete the installation tomorrow
and hopefully everything will work!

[root@enterprise ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)

JK

unread,
May 30, 2006, 2:29:17 PM5/30/06
to Google Web Toolkit

Is there no way to run GWT with the GNU Java that comes with FC5?

Reply all
Reply to author
Forward
0 new messages