Find the answer to your Linux question:
Results 1 to 2 of 2
Hi everyone, I'm a newbie to this forum, and also to Linux, so excuse my ignorance. I've recently installed Fedora 3 on a PC that was formerly Windows, and I've ...
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Sheffield, UK
    Posts
    17

    Installing Eclipse Java IDE

    Hi everyone,

    I'm a newbie to this forum, and also to Linux, so excuse my ignorance.

    I've recently installed Fedora 3 on a PC that was formerly Windows, and I've been reasonably happy with it so far. The installation went fine, and the only problem that I've had so far is installing the Eclipse Java IDE 3.0.1

    I've downloaded the file from the www.eclipse.org site in the root account, in a .zip format. I selected the "x86 GTK2" option as that was specified for a Intel PC with Red Hat. I then unzipped the file to a folder just off the root directory, and tried clicking on the eclipse cog icon to start up the program. I also unzipped the "startup.jar" file to a subdirectory of the unzipped eclipse folder.

    When I clicked on the cog icon to start Eclipse, a error dialog appeared, referring me to a log file in the configuration subdirectory. In it's entirety, this log file said:

    !SESSION Jan 26, 2005 20:56:37.134 ---------------------------------------------
    eclipse.buildId=M200409161125
    java.fullversion=GNU libgcj 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

    !ENTRY org.eclipse.osgi Jan 26, 2005 20:56:37.134
    !MESSAGE Startup error
    !STACK 1
    java.lang.NoClassDefFoundError: while resolving class: org.eclipse.core.runtime.adaptor.EclipseAdaptor
    at java.lang.VMClassLoader.resolveClass(java.lang.Cla ss) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.cr eateAdaptor() (Unknown Source)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.st artup(java.lang.String[], java.lang.Runnable) (Unknown Source)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(java.lang.String[], java.lang.Runnable) (Unknown Source)
    at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
    at org.eclipse.core.launcher.Main.basicRun(java.lang. String[]) (Unknown Source)
    at org.eclipse.core.launcher.Main.run(java.lang.Strin g[]) (Unknown Source)
    at org.eclipse.core.launcher.Main.main(java.lang.Stri ng[]) (Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler not found in [file:/root/eclipse/plugins/org.eclipse.osgi_3.0.1/core.jar, file:/root/eclipse/plugins/org.eclipse.osgi_3.0.1/console.jar, file:/root/eclipse/plugins/org.eclipse.osgi_3.0.1/osgi.jar, file:/root/eclipse/plugins/org.eclipse.osgi_3.0.1/resolver.jar, file:/root/eclipse/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar, file:/root/eclipse/plugins/org.eclipse.osgi_3.0.1/eclipseAdaptor.jar]
    at java.net.URLClassLoader.findClass(java.lang.String ) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_ClassReader.handleClassBegin(int, int, int) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_ClassReader.parse() (/usr/lib/libgcj.so.5.0.0)
    at _Jv_DefineClass(java.lang.Class, byte[], int, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.defineClass(java.lang.Clas sLoader, java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.defineClass(java.lang.String , byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.security.SecureClassLoader.defineClass(java.l ang.String, byte[], int, int, java.security.CodeSource) (/usr/lib/libgcj.so.5.0.0)
    at java.net.URLClassLoader.findClass(java.lang.String ) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_PrepareCompiledClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class ) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Cla ss) (/usr/lib/libgcj.so.5.0.0)
    ...12 more
    !SESSION Wed Jan 26 20:56:37 GMT-01:00 2005 ------------------------------------
    !ENTRY org.eclipse.core.launcher 4 0 Jan 26, 2005 20:56:37.221
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.NullPointerException
    at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(java.lang.String[], java.lang.Runnable) (Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(java.lang. String[]) (Unknown Source)
    at org.eclipse.core.launcher.Main.run(java.lang.Strin g[]) (Unknown Source)
    at gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __gcj_personality_v0 (/root/eclipse/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
    at __libc_start_main (/lib/tls/libc-2.3.3.so)
    at _Jv_RegisterClasses (/root/eclipse/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)


    I know that I have Java on my machine because I am able to use it fine from the command line.

    Any ideas? Is this a common problem when trying to install Eclipse in Fedora? Once again, apologies for my ignorance, I am a Linux newbie.

    Thanks

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    I know that I have Java on my machine because I am able to use it fine from the command line.
    Simply to make sure, Did you install the last version of JRE?
    Here TO dload
    Here TO Instruction
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...