LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2006, 05:56 AM   #1
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188

Rep: Reputation: 30
Thumbs down Eclipse does not start


I have been trying to install Eclipse for sometime without much luck.
It is the latest version prehaps 3.1??? .
Previously it would show the splash screen and direct me to a log where the list of errors were listed. This time it showed a more intelligble screen which I am listing below any help is VERY welcome.

Code:
JVM terminated. Exit code=1
/usr/bin/java
-Xms40m
-Xmx256m
-jar /opt/eclipse/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /opt/eclipse/./eclipse
-name Eclipse
-showsplash 600
-exitdata f000f
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /opt/eclipse/./startup.jar
The Java VM version does not show but is also the latest. 1.5??.
Using Linux with FC3.
Here are the entire contents of the log
Code:
!SESSION 2006-02-15 12:04:32.192 -----------------------------------------------
eclipse.buildId=M20060118-1600
java.fullversion=GNU libgcj 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 2006-02-15 12:04:32.673
!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.invokeFramework(java.lang.String[], java.net.URL[]) (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 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.1.2.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)
   ...13 more
!SESSION Wed Feb 15 12:04:32 GMT 2006 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2006-02-15 12:04:32.958
!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.invokeFramework(java.lang.String[], java.net.URL[]) (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.3.so)

Last edited by anilbh; 02-15-2006 at 06:18 AM.
 
Old 02-15-2006, 06:19 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Can you compile and run Java programs with the terminal? Do you have Sun's Java Virtual Machine installed? What do you get when you type java -version at the terminal?

Some distros are shipping with a gcj replacement of some sort (like Ubuntu Breezy) and those won't work. If that's your case, uninstall all java-related packages, go to sun.com and grab the latest Java SDK and install it. Get the binaries, not the rpm's. There're instructions about how to install it. If you get stuck, reply here and I give you a hand or search the forums, I've helped a few times with java installation before

Oh, a side note as well. Try launching Eclipse from Eclipse current path. I mean, go to /opt/eclipse and run it from there (or whenever you've installed)

Last edited by Mega Man X; 02-15-2006 at 06:21 AM.
 
Old 02-15-2006, 08:21 AM   #3
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Question

Quote:
Originally Posted by Mega Man X
Can you compile and run Java programs with the terminal? Do you have Sun's Java Virtual Machine installed? What do you get when you type java -version at the terminal?
I am not sure about but I have been to Java.com and tried Verify installation . The duke applets dont seem to work. But there is a verification line which says Jav 1.5.... installed .

Quote:
Some distros are shipping with a gcj replacement of some sort (like Ubuntu Breezy) and those won't work. If that's your case, uninstall all java-related packages, go to sun.com and grab the latest Java SDK and install it.

Get the binaries, not the rpm's. There're instructions about how to install it. If you get stuck, reply here and I give you a hand or search the forums, I've helped a few times with java installation before

Oh, a side note as well. Try launching Eclipse from Eclipse current path. I mean, go to /opt/eclipse and run it from there (or whenever you've installed)
This I did , as root and as user .
The error message did not repeat twice . What I now get is a message to look at the log.
I am including the message I got with java -version. This is the same message I get when I start Eclipse from the terminal .
Quote:
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
gij (GNU libgcj) version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Does that mean Java is not working?
Maybe I did not install correctly . I got the latest from Java.com.
I am quite certain that Java applets are working in the Browser.
the package is jre-1_5_0_06-linux-i586-rpm.bin
but rpm -q jre show not installed ??

Last edited by anilbh; 02-15-2006 at 08:31 AM.
 
Old 02-15-2006, 09:30 AM   #4
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Question

Hello Mega Man ,
More ..
I had jdk1.501 installed .
I had downloaded jre1.1.5_06 rpm.bin file .it seems the rpm was created but not installed so I installed that now I have 2 directories a jdk 1.5.01 and an jre 1.5.06 ( latest ) . Should I uninstall both these and get a jre xx.bin from Java.com . Don't I need the Jdk

I really appreciate getting answers for all this .
I did as advised . The problem remains as is . Verify installation at Java.com gives the older version 1.5.01 .
checking PATH show that the old path is still set in the environment.
How do I set this to the new path which is now /usr/java/jre1.5_06 ~.
I forgotten the file where this is set.


Last edited by anilbh; 02-15-2006 at 11:21 AM.
 
Old 02-15-2006, 02:59 PM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi again anilbh!

If I was you, I'd remove everything you have related to Java, just to make sure things won't conflict or that you are not using that gcjava runtime. Then, once you are done, go here:

https://sdlcweb4b.sun.com/ECom/EComA...8D52E28A3BDC89

And grab this one:

Linux self-extracting file jdk-1_5_0_06-linux-i586.bin 46.71 MB

I prefer the binaries ratter then the rpm, because at least I know where the files are going and I choose where I want to install. Run this command to make the file you've downloaded executable:

chmod +x jdk-1_5_0_<version>-linux-i586.bin

move that file to your prefered place (like /usr/local or /opt/) and run the installer:

./jdk-1_5_0_<version>-linux-i586.bin

Java will be installed in the current directory (eg: jdk1.5.0_<version>). Note also that you don't need to download both JDK and JRE, because the JDK includes also JRE.

The next is to export the path as you've asked. There are 3 ways that I know of doing this:

- Include the path to java at your ~/.bashrc. This will make Java available only for you current user.
- Include the path to java at your /etc/profile. This will make Java available for all users.
- Make a symbolic link from your /pathtojava/bin /usr/bin. It will also make java available for all the users.


If you are going to stick with alternative 1 or 2, here is a good place to learn about classpath:

http://java.sun.com/j2se/1.4.2/docs/...classpath.html

You can also check this old thread where I gave some hints about installing java both using classpaths and symlinks:

http://www.linuxquestions.org/questi...highlight=Java

Try running again java -version to see what you get and if everything is right now. You should be able to install Eclipse also. Get this package:

http://www.eclipse.org/downloads/dow...nux-gtk.tar.gz

uncompress with "tar xvzf eclipse-SDK-3.1.2-linux-gtk.tar.gz".

Side note: I'm not sure if you need JSDK to run Eclipse. JRE should be enough if you _don't_ want to use Eclipse for Java programming. I could be wrong though. I always use JDK because I actually program with Java so...

I hope this helps.

Good luck!

Last edited by Mega Man X; 02-15-2006 at 03:02 PM.
 
Old 02-15-2006, 07:03 PM   #6
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Thumbs up

I am going through your reply closely . There are problems still.
None of the samples have worked . I mean - it shows a dialog to select a sample after clicking on say Multi page editor. But the list is blank .
I have read a little about Java Programming and want to see how much Eclipse reduces the work.

The thing is it is Working .

It seems the complete path is required in the command line.

so this is what works for me.
/opt/eclipse/eclipse -vm /usr/java/jre1.5..../bin/java.

....
Looked through the link you have shown .
I see something like sjas...linux.bin . No sign of SDK.
Maybe it has to be paid for?
Sorry about this.
But it does take a lot of searching. Thank God I now have Broadband.
I downlaoded a 130 mb file with netbeans ( any problem with that ?).
Then I got the file you noted.
So I got netbeans too. Did not know that it was also an IDE . Well I recently put in an 80gb drive so I will not delete it.
My son uses Java mainly . So maybe he will like all the options .
I only intend to tinker with the Samples.

Last edited by anilbh; 02-15-2006 at 09:15 PM.
 
  


Reply



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
about eclipse nerd Debian 5 08-02-2007 05:43 AM
can not start eclipse many errors GhostBox Linux - Software 3 11-03-2005 12:59 PM
Start work with eclipse eduardomsilva Programming 4 02-25-2005 10:17 AM
Eclipse-SDK-3 can't start! Bonch Debian 4 11-27-2004 03:52 AM
Eclipse doesn't start koswo Programming 1 10-14-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 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