Home » Newcomers » Newcomers » Eclipse won't open on Fedora Core 3
Eclipse won't open on Fedora Core 3 [message #43791] |
Wed, 30 March 2005 19:38  |
Eclipse User |
|
|
|
Originally posted by: pcpak.hotmail.com
Hi,
I am a newcomer to Linux, but have been using Eclipse with Windows, and
Linux (at school) so I wasn't involved in the configuration. Anyway, I have
installed Eclipse 3.0 on my Fedora Core 3 system and once I try to launch
eclipse I get the error at the bottom of this message. I installed Java 5
on the system or so I think I did.
Your help is much appreciated.
Phil
!SESSION Mar 26, 2005
12:10:03.83 ----------------------------------------------
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 Mar 26, 2005 12:10:03.84
!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.createAdapto r() (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.lan g.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:/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.1/core .jar,
file:/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.1/conso le.jar,
file:/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.1/osgi. jar,
file:/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.1/resol ver.jar,
file:/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.1/defau ltAdaptor.jar,
file:/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.1/eclip seAdaptor.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 Sat Mar 26 12:10:03 GMT-07:00
2005 ------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Mar 26, 2005 12:10:03.400
!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.lan g.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 __libc_start_main (/lib/tls/libc-2.3.4.so)
|
|
|
Re: Eclipse won't open on Fedora Core 3 [message #43856 is a reply to message #43791] |
Wed, 30 March 2005 23:27   |
Eclipse User |
|
|
|
Originally posted by: myersj.nospam.gmail.com
Phil,
Despite installing Java 5 on the system, Eclipse is still being launched
with GCJ. You can either modify your path so that Sun's Java shows up
first, or launch eclipse with the -vm /path/to/java command line
argument. You might also want to use the GTK version of Eclipse, Motif
is pretty ugly.
Hope this helps,
- Jeff
Phil Kellogg wrote:
> Hi,
>
> I am a newcomer to Linux, but have been using Eclipse with Windows, and
> Linux (at school) so I wasn't involved in the configuration. Anyway, I have
> installed Eclipse 3.0 on my Fedora Core 3 system and once I try to launch
> eclipse I get the error at the bottom of this message. I installed Java 5
> on the system or so I think I did.
>
> Your help is much appreciated.
>
> Phil
> java.fullversion=GNU libgcj 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
|
|
|
Re: Eclipse won't open on Fedora Core 3 [message #43915 is a reply to message #43856] |
Thu, 31 March 2005 00:04   |
Eclipse User |
|
|
|
Originally posted by: pcpak.hotmail.com
Thank you for the quick response, Jeff. I'm curious on how I would change
my path, since that would be easier than having to enter the -vm
/path/to/java everytime I launch eclipse. I will look into getting GTK
version as well.
Thanks again
Phil
"Jeff Myers" <myersj@nospam.gmail.com> wrote in message
news:d2fu7d$7j2$1@news.eclipse.org...
> Phil,
>
> Despite installing Java 5 on the system, Eclipse is still being launched
> with GCJ. You can either modify your path so that Sun's Java shows up
> first, or launch eclipse with the -vm /path/to/java command line argument.
> You might also want to use the GTK version of Eclipse, Motif is pretty
> ugly.
>
> Hope this helps,
>
> - Jeff
>
> Phil Kellogg wrote:
>> Hi,
>>
>> I am a newcomer to Linux, but have been using Eclipse with Windows, and
>> Linux (at school) so I wasn't involved in the configuration. Anyway, I
>> have installed Eclipse 3.0 on my Fedora Core 3 system and once I try to
>> launch eclipse I get the error at the bottom of this message. I
>> installed Java 5 on the system or so I think I did.
>>
>> Your help is much appreciated.
>>
>> Phil
>> java.fullversion=GNU libgcj 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
>
|
|
|
Re: Eclipse won't open on Fedora Core 3 [message #44132 is a reply to message #43915] |
Thu, 31 March 2005 09:03   |
Eclipse User |
|
|
|
Originally posted by: myersj.gmail.com
Phil,
Modifying your path depends on which shell you're using. You're probably
working with a standard install of Fedora, which has bash as its
default. Open up a console and edit the .bashrc file in your home
directory. Somewhere near the top add the line:
export PATH=/path/to/jre's/bin:$PATH
Save the file, return to the console, type 'exec bash' then 'which
java'. That command should report back the java executable within your
jre's bin directory. If so, try launching eclipse. If you've setup
shortcuts or launchers for eclipse, you may need to log off and back on
for it to pick up the new path settings.
Hope this helps,
- Jeff
Phil Kellogg wrote:
> Thank you for the quick response, Jeff. I'm curious on how I would change
> my path, since that would be easier than having to enter the -vm
> /path/to/java everytime I launch eclipse. I will look into getting GTK
> version as well.
>
> Thanks again
>
> Phil
>
>
>
> "Jeff Myers" <myersj@nospam.gmail.com> wrote in message
> news:d2fu7d$7j2$1@news.eclipse.org...
>
>>Phil,
>>
>>Despite installing Java 5 on the system, Eclipse is still being launched
>>with GCJ. You can either modify your path so that Sun's Java shows up
>>first, or launch eclipse with the -vm /path/to/java command line argument.
>>You might also want to use the GTK version of Eclipse, Motif is pretty
>>ugly.
>>
>>Hope this helps,
>>
>> - Jeff
>>
>>Phil Kellogg wrote:
>>
>>>Hi,
>>>
>>>I am a newcomer to Linux, but have been using Eclipse with Windows, and
>>>Linux (at school) so I wasn't involved in the configuration. Anyway, I
>>>have installed Eclipse 3.0 on my Fedora Core 3 system and once I try to
>>>launch eclipse I get the error at the bottom of this message. I
>>>installed Java 5 on the system or so I think I did.
>>>
>>>Your help is much appreciated.
>>>
>>>Phil
>>>java.fullversion=GNU libgcj 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
>>
>
>
|
|
| | |
Re: Eclipse won't open on Fedora Core 3 [message #48322 is a reply to message #44621] |
Wed, 06 April 2005 16:29  |
Eclipse User |
|
|
|
Phil Kellogg wrote:
> Jeff,
>
> I appreciate your help, I got it going, however I wasn't sure how to
> edit bashrc like you said.
the easiest would be to use gedit and open the .bashrc file (should be
in your home dir). This might be obvious to you, so apologies if it is
(it wasn't to me when I got started....):
$cd // brings to your home dir
$ls .bashrc // just to check it's there
$gedit .bashrc & // runs gedit in bkgnd so you can keep using the shell
Hope this helps, if not drop a line.
PS - in future, you might want to use (as an alternative to editing .bashrc)
$export PATH=....
>
> What I did was just type PATH=/path/to/jre/bin:$PATH and then it
> worked. Is this a temporary fix?
yes, it is. once you log out the PATH variable will reverse to whatever
it was set originally.
>
> Anyhow, thank you for your help.
>
> Phil
>
|
|
|
Goto Forum:
Current Time: Thu Sep 18 04:41:29 EDT 2025
Powered by FUDForum. Page generated in 0.07057 seconds
|