Linux - NewbieThis 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.
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.
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.
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.
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.
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.
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...).
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.