LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2005, 09:26 PM   #1
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
FC3 and eclipse not working


I just installed FC3 and i am trying to get eclipse to run on it. I know that there must be an answer to this somewhere.

When i run the eclipse command this is the error that i get.
!ENTRY org.eclipse.osgi Feb 02, 2005 21:07:27.310
!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/nicholas/Programming/eclipse/plugins/org.eclipse.osgi_3.0.1/core.jar, file:/home/nicholas/Programming/eclipse/plugins/org.eclipse.osgi_3.0.1/console.jar, file:/home/nicholas/Programming/eclipse/plugins/org.eclipse.osgi_3.0.1/osgi.jar, file:/home/nicholas/Programming/eclipse/plugins/org.eclipse.osgi_3.0.1/resolver.jar, file:/home/nicholas/Programming/eclipse/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar, file:/home/nicholas/Programming/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 Wed Feb 02 21:07:27 GMT-05:00 2005 ------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Feb 02, 2005 21:07:27.479
!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 __libc_start_main (/lib/tls/libc-2.3.4.so)

I have a valid version of java, but i can't seem to figure out why eclipse is dieing. Any help would be great.

Thanks
 
Old 02-08-2005, 10:11 AM   #2
linuxsa
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Smile

Hi Guys,

I could not answer this questions because I have the same problem too.

Please Help us. Thank you...
 
Old 02-08-2005, 11:00 AM   #3
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
You need to tell the system where the eclipse libs are located. The easy way is to run
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/eclipse
if /usr/eclipse is where you have it install, and then run eclipse.

If that works you should add that line to your /etc/profile. Look here for details http://www.csfalcon.com/wiki/csfalcon/EclipseIDE

Last edited by csfalcon; 06-09-2008 at 11:35 AM.
 
Old 02-09-2005, 06:23 AM   #4
linuxsa
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
hi friends i have been using fedora core 3. This systen hava java and javac command when i set up the FC3 . But eclipse can't run please help us

thank you for your contribition...
 
Old 02-09-2005, 10:24 AM   #5
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
FC3 has either a place holder for java and javac or the gcc java, I'd recommend installing the Sun's JDK and replace those place holders. Here are the instructions for installing Java and Eclipse.

Java SDK
Eclipse IDE

Last edited by csfalcon; 06-09-2008 at 11:36 AM.
 
Old 02-12-2005, 10:47 AM   #6
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Original Poster
Rep: Reputation: 15
Installing the actually Java JDK from Sun work great. Thanks csfalcon.

Just one think, after installing the JDK you also need to change the location that the /usr/bin/java link is pointing to. Need to move it from the script file to the location where the actually JDK was installed.

Thanks again.
 
Old 02-21-2005, 10:27 PM   #7
dafatdude
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 0
Hi guys,

I have been having that very same problem but i fixed it now.
Make sure you check which version of java is being used.

Code:
which java
Mine displayed
Code:
/usr/bin/java
which was a symbolic link to the wrong place.

You have to make sure that the java displayed is the one which lives in your Java SDK directory.
This can be achieved by exporting the java path to the /etc/profile.

Code:
export PATH=$PATH:/usr/jdk*/bin
Mine worked fine after that.

Thanks guys,

-dafat
 
Old 02-28-2005, 03:44 PM   #8
ebo
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
Hi Guys,

i also got a problem with running eclipse with FC3. I installed the java sdk and eclipse. When I am trying to start eclipse I get the following error:

JVM terminated. Exit code=1
/usr/bin/java
-cp /home/armbrusterr/eclipse/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch x86
-showsplash /home/armbrusterr/eclipse/eclipse -showsplash 600
-exitdata /home/armbrusterr/eclipse/eclipse -exitdata 17800f
-vm /usr/bin/java
-vmargs
-cp /home/armbrusterr/eclipse/startup.jar org.eclipse.core.launcher.Main

I tried to change the PATH to the correct location (/usr/java/j2sdk1.4...../) with this:

Code:
export PATH=$PATH:/usr/java/j2sdk1.4.2_07/bin
but when I use
Code:
which java
it still answers /usr/bin/java

Thanks for your help.

br

ebo
 
Old 02-28-2005, 03:50 PM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
PATH=$PATH:/blah/blah

sets /blah/blah to the last directory searched in the PATH. So if /usr/bin is before your entry ( which it will be), it will be picked up first instead of what you want.

export PATH=/blah/blah:$PATH

sets /blah/blah to the FIRST directory searched, so it will be searched before /usr/bin. Under bash, this syntax is true on all paths so they work the same ( by all paths I mean others like PKG_CONFIG_PATH, LD_LIBRARY_PATH, etc...).
 
Old 03-01-2005, 02:23 AM   #10
TiMDoR
LQ Newbie
 
Registered: Oct 2003
Location: The Western Republic of Alberta
Distribution: Fedora Core 3; Knoppix
Posts: 11

Rep: Reputation: 0
oooooh...

not really clicking on any of those posted links, but i spent HOURS trying to get eclipse running in FC3 but considering how slow it runs in windoze, it was worth it...

so after hours of doing everything the long way and searching through the eclipse wiki and bugzilla i saw a reply that simply said "why don't you just make a launcher?" and at that point i wasn't sure whether to laugh or cry...

so make yourself a custom launcher and point it to where you've got eclipse.exe hiding, and then in the command line add minus the quotes "-vm /usr/share/j2dk1.5.0/jre/bin/java.exe" or where ever you happen to have the java installed to...

plus since eclipse uses it's own compiler you'll want to stay away from using javac the default sun java compiler...

easy no?

Last edited by TiMDoR; 03-01-2005 at 02:24 AM.
 
Old 03-01-2005, 02:56 PM   #11
ebo
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
Hi again,

I tried to set the Path like this:

Code:
export PATH=/usr/java/j2sdk1.4.2_7/bin:$PATH
when I check the config with :

Code:
which java
I get the following result:

Code:
/usr/java/j2sdk1.4.2_07/bin/java
I thought this might be some kind of bug or anything like that so I tried to start eclipse.... and got my same old problem:

Code:
JVM terminated. Exit code=1
/usr/bin/java
-cp /home/armbrusterr/eclipse/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch x86
-showsplash /home/armbrusterr/eclipse/eclipse -showsplash 600
-exitdata /home/armbrusterr/eclipse/eclipse -exitdata 12800d
-vm /usr/bin/java
-vmargs
-cp /home/armbrusterr/eclipse/startup.jar org.eclipse.core.launcher.Main
Any more ideas?

Thanks for your help.

br

ebo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kde not working in FC3 todd93 Fedora 10 04-26-2005 10:22 AM
(FC3) ATI FGLRX Drivers work for months,FC3 update, stop working genixpro Linux - Hardware 2 04-23-2005 10:01 PM
downloads with FC3 working at all ylts Linux - Networking 3 03-26-2005 09:32 AM
855resolution in FC3 not working? daKlausi Linux - Laptop and Netbook 2 02-27-2005 11:54 PM
ndiswrapper not working on FC3 ssimontis Linux - Wireless Networking 3 02-21-2005 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration