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 |
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-15-2006, 05:56 AM
|
#1
|
Member
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188
Rep:
|
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.
|
|
|
02-15-2006, 06:19 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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.
|
|
|
02-15-2006, 08:21 AM
|
#3
|
Member
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188
Original Poster
Rep:
|
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.
|
|
|
02-15-2006, 09:30 AM
|
#4
|
Member
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188
Original Poster
Rep:
|
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.
|
|
|
02-15-2006, 02:59 PM
|
#5
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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.
|
|
|
02-15-2006, 07:03 PM
|
#6
|
Member
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 188
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:11 AM.
|
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
|
|