facebook

eclipse startup error

  1. MyEclipse Archived
  2.  > 
  3. General
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #227346 Reply

    arnulfo
    Member

    I recently installed jdk1.5 in my computer and then installed eclipse 3.0.2
    afterwards.. for some reason it cant recognize the newer version of jdk and displays this error message instead:

    eclipse.buildId=M200503110845
    java.version=1.3.1_02
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    !ENTRY org.eclipse.osgi Mar 30, 2005 22:43:01.469
    !MESSAGE Error registering XML parser services.
    !STACK 0
    java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at org.eclipse.core.runtime.adaptor.EclipseAdaptor.registerEndorsedXMLParser(EclipseAdaptor.java:272)
    at org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStart(EclipseAdaptor.java:253)
    at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:61)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:553)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:477)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:273)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:166)
    at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:425)
    at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:216)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)

    !ENTRY org.eclipse.osgi Mar 30, 2005 22:43:01.610
    !MESSAGE Startup error
    !STACK 1
    java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at org.eclipse.core.runtime.adaptor.PluginConverterImpl.parsePluginInfo(PluginConverterImpl.java:557)
    at org.eclipse.core.runtime.adaptor.PluginConverterImpl.fillPluginInfo(PluginConverterImpl.java:111)
    at org.eclipse.core.runtime.adaptor.PluginConverterImpl.convertManifest(PluginConverterImpl.java:660)
    at org.eclipse.core.runtime.adaptor.EclipseBundleData.generateManifest(EclipseBundleData.java:233)
    at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadManifest(EclipseBundleData.java:191)
    at org.eclipse.core.runtime.adaptor.EclipseBundleData.getManifest(EclipseBundleData.java:159)
    at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadFromManifest(EclipseBundleData.java:280)
    at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultBundleData.initializeNewBundle(DefaultBundleData.java:77)
    at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$1.begin(DefaultAdaptor.java:451)
    at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:746)
    at org.eclipse.osgi.framework.internal.core.Framework$2.run(Framework.java:664)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:715)
    at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:659)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:219)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:800)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:429)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:222)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)

    !ENTRY org.eclipse.osgi Mar 30, 2005 22:43:01.626
    !MESSAGE Bundle initial@reference:file:c:/eclipse-SDK-3.0.2-win32/eclipse/plugins/org.eclipse.core.runtime_3.0.2/ [1] was not resolved.

    #227378 Reply

    Riyad Kalla
    Member

    1) Eclipse 3.x requires JDK 1.4+ to run, so the error isn’t a surprise.

    2) You can tell Eclipse where to look by using the -vm flag:

    
    eclipse.exe -vm c:\jdk1.5.0\bin\javaw.exe -vmargs Xmx256m
    
    #227767 Reply

    siefkencp
    Member

    I have the same problem running RHEL 4

    Below is the error… thanks!

    !SESSION Apr 07, 2005 18:45:55.11 ———————————————-
    eclipse.buildId=M200503110845
    java.fullversion=GNU libgcj 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

    !ENTRY org.eclipse.osgi Apr 07, 2005 18:45:55.12
    !MESSAGE Startup error
    !STACK 1
    java.lang.NoClassDefFoundError: while resolving class: org.eclipse.core.runtime.adaptor.EclipseAdaptor
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/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.createAdaptor() (Unknown Source)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(java.lang.String[], java.lang.Runnable) (Unknown Source)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(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.String[]) (Unknown Source)
    at org.eclipse.core.launcher.Main.main(java.lang.String[]) (Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.xml.sax.helpers.DefaultHandler not found in [file:/home/siefkencp/eclipse/plugins/org.eclipse.osgi_3.0.1/core.jar, file:/home/siefkencp/eclipse/plugins/org.eclipse.osgi_3.0.1/console.jar, file:/home/siefkencp/eclipse/plugins/org.eclipse.osgi_3.0.1/osgi.jar, file:/home/siefkencp/eclipse/plugins/org.eclipse.osgi_3.0.1/resolver.jar, file:/home/siefkencp/eclipse/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar, file:/home/siefkencp/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.ClassLoader, 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.lang.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.Class) (/usr/lib/libgcj.so.5.0.0)
    …12 more
    !SESSION Thu Apr 07 18:45:55 GMT-05:00 2005 ————————————
    !ENTRY org.eclipse.core.launcher 4 0 Apr 07, 2005 18:45:55.241
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.NullPointerException
    at java.lang.Object.getClass() (/usr/lib/libgcj.so.5.0.0)
    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.run(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.String[]) (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 (/home/siefkencp/eclipse/java.version=1.4.2)
    at __libc_start_main (/lib/tls/libc-2.3.4.so)
    at _Jv_RegisterClasses (/home/siefkencp/eclipse/java.version=1.4.2)

    #227771 Reply

    Riyad Kalla
    Member

    I have the same problem running RHEL 4

    Below is the error… thanks!

    !SESSION Apr 07, 2005 18:45:55.11 ———————————————-
    eclipse.buildId=M200503110845
    java.fullversion=GNU libgcj 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

    Your problem is different, here you are not specifying a JRE for Eclipse to run so it is finding and trying to use GCJ, which will definately not work.

    #227785 Reply

    siefkencp
    Member

    So I gather from my reading I need JDK 1.5 or so… not part of the standard RH distro. Im going to try to find it on Sun’s website.

    Chris

    #227790 Reply

    Riyad Kalla
    Member

    You need JDK 1.4+, and yes from Sun’s website and yes, not part of the standard RH distro (licensing issues).

    #227793 Reply

    siefkencp
    Member

    JDK installed and I get the same exact error.

    #227797 Reply

    Riyad Kalla
    Member

    Did you read my 2nd post in this thread? That suggestion applies to you as well… you can clearly see from the “error” that GCJ is being used to run Eclipse, if you *are* getting the exact same error then I would suggest that Eclipse is still attempting to run itself with GCJ and you should take my suggestion in post #2 to heart.

    #227798 Reply

    siefkencp
    Member

    That worked. Thanks for the help.

    Chris

    #228145 Reply

    I had a similar problem on Windows. The culprit turned out to be Oracle. After installing Oracle 9i, it placed its own JRE 1.3 and 1.1 in my system PATH variable.

    Thanks for the tip which gave me the clue as to what to look for…

    –Charlie

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: eclipse startup error

You must be logged in to post in the forum log in