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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-02-2005, 09:26 PM
|
#1
|
Member
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145
Rep:
|
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
|
|
|
02-08-2005, 10:11 AM
|
#2
|
LQ Newbie
Registered: Feb 2005
Posts: 2
Rep:
|
Hi Guys,
I could not answer this questions because I have the same problem too.
Please Help us. Thank you...
|
|
|
02-08-2005, 11:00 AM
|
#3
|
Member
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269
Rep:
|
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.
|
|
|
02-09-2005, 06:23 AM
|
#4
|
LQ Newbie
Registered: Feb 2005
Posts: 2
Rep:
|
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...
|
|
|
02-09-2005, 10:24 AM
|
#5
|
Member
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269
Rep:
|
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.
|
|
|
02-12-2005, 10:47 AM
|
#6
|
Member
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145
Original Poster
Rep:
|
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.
|
|
|
02-21-2005, 10:27 PM
|
#7
|
LQ Newbie
Registered: Oct 2003
Posts: 18
Rep:
|
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.
Mine displayed 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
|
|
|
02-28-2005, 03:44 PM
|
#8
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Rep:
|
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 it still answers /usr/bin/java
Thanks for your help.
br
ebo
|
|
|
02-28-2005, 03:50 PM
|
#9
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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...).
|
|
|
03-01-2005, 02:23 AM
|
#10
|
LQ Newbie
Registered: Oct 2003
Location: The Western Republic of Alberta
Distribution: Fedora Core 3; Knoppix
Posts: 11
Rep:
|
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.
|
|
|
03-01-2005, 02:56 PM
|
#11
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Rep:
|
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 :
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
|
|
|
All times are GMT -5. The time now is 08:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|