1. Este site usa cookies. Ao continuar a usar este site está a concordar com o nosso uso de cookies. Saber Mais.

Eclipse em Linux(FC3)

Discussão em 'Programação' iniciada por Pluster, 7 de Dezembro de 2004. (Respostas: 4; Visualizações: 1323)

  1. Pluster

    Pluster Power Member

    bem pessoal o problema e o seguinte.. ja tenho o jdk1.5.0 instalado e o netbeans 4.0beta2 a rodar (a instalação e automatica) mas como eu nao gosto muito do netbeans.. qeuria instalar o eclipse... o problema e que recebo um erro quando tenho correr o eclipse... eu acho que o problema e que ele ta a ir buscar a path do JVM mal... mas nao sei aonde e que configuro isso.. alguem me pode dar uma ajudinha ?? o code do error e este :

    Código:
    !SESSION Dec 07, 2004 19:54:23.54 ----------------------------------------------
    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=motif, NL=en_US
    
    !ENTRY org.eclipse.osgi Dec 07, 2004 19:54:23.55
    !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:/opt/eclipse/plugins/org.eclipse.osgi_3.0.1/core.jar, file:/opt/eclipse/plugins/org.eclipse.osgi_3.0.1/console.jar, file:/opt/eclipse/plugins/org.eclipse.osgi_3.0.1/osgi.jar, file:/opt/eclipse/plugins/org.eclipse.osgi_3.0.1/resolver.jar, file:/opt/eclipse/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar, file:/opt/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 Tue Dec 07 19:54:23 GMT+00:00 2004 ------------------------------------
    !ENTRY org.eclipse.core.launcher 4 0 Dec 07, 2004 19:54:23.209
    !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.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 (/opt/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 (/opt/eclipse/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
    

    obrigado
     
  2. Lostctrl

    Lostctrl [email protected] Member

    Bem,

    Para um 1ª tentativa tenta definir a variável de ambiente JAVA_HOME = [root path JVM]

    Cumprs
     
  3. Crisis

    Crisis Power Member

    Penso que o Eclipse nao suporta ainda a versão 1.5 do java, tenta com a versao 1.4.2

    Cumprimentos
     
  4. smallcats

    smallcats Power Member

    Ora boas,

    Eu tive este problema mas em windows, e resolvi, dando no shortcut o path para a vm de java <br> "C:\Program Files\eclipse\eclipse.exe" -vm C:\j2sdk1.4.2_06\bin\javaw

    Penso que em linux, podes tb por no shortcut do teu X (gnome / kde) da mesma maneira (mas com o path para o javaw em linux).

    Espero ter ajudado,
     
  5. Madril

    Madril 1st Folding then Sex

    Na era
    Código:
    set-env CLASSPATH="...."
    ?
     

Partilhar esta Página