wood burning stoves 2.0*
The moose likes Java in General and the fly likes error in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "error in eclipse" Watch "error in eclipse" New topic
Author

error in eclipse

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,
I dont know where to ask this question.Thats why i am asking here.
I have downloaded eclipse-SDK-3.3.1.1-linux-gtk.tar.gz and installed in /usr/local in my redhat linux system.Inside the eclipse folder when i click the eclipse,I am unable to open eclipse.it is showing the following error:

JVM terminated. Exit code=1
/usr/bin/java
-Xms40m
-Xmx256m
-jar /usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /usr/local/eclipse/eclipse
-name Eclipse
--launcher.library /usr/local/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.2.R331_v20071019/eclipse_1021.so
-startup /usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata 9000b
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar

I am using jdk-6u4-linux-i586.bin version java and i have installed apache-tomcat-5.5.26.tar.gz.
please anyone help me .
[ March 03, 2008: Message edited by: preethi Ayyappan ]
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Originally posted by preethi Ayyappan:
Hi,
I dont know where to ask this question.Thats why i am asking here.
I have downloaded eclipse-SDK-3.3.1.1-linux-gtk.tar.gz and installed in /usr/local in my redhat linux system.Inside the eclipse folder when i click the eclipse,I am unable to open eclipse.it is showing the following error:

I am using jdk-6u4-linux-i586.bin version java and i have installed apache-tomcat-5.5.26.tar.gz.
please anyone help me .

[ March 03, 2008: Message edited by: preethi Ayyappan ]


This will happen when you have different JRE in your system.Check your PATH variable and check whether it is pointing to the Java which you have installed in your Linux Machine.

Most of the times this happens when you install Oracle like products which installs some other JRE and update the PATH environment variable without asking you.
[ March 04, 2008: Message edited by: Balasubramanian Chandrasekaran ]
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,
Thanks for your reply.As you've mentioned,I checked for java version in my linux machine.It shows java version "1.4.2"
which is already in that machine.Now i am having jdk1.6.0_04 in usr/java.I have set the path as /usr/java/jdk1.6.0_04 in etc/profile .But now when i run the eclipse it shows the following error:

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/usr/local/eclipse/jre/bin/java
java in your current PATH


what should i do now?please help me
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Originally posted by preethi Ayyappan:
Hi,
Thanks for your reply.As you've mentioned,I checked for java version in my linux machine.It shows java version "1.4.2"
which is already in that machine.Now i am having jdk1.6.0_04 in usr/java.I have set the path as /usr/java/jdk1.6.0_04 in etc/profile .But now when i run the eclipse it shows the following error:


what should i do now?please help me


You need to set the path to /usr/java/jdk1.6.0_04/bin instead of /usr/java/jdk1.6.0_04.
Your java and javac files can be found under /usr/java/jdk1.6.0_04/bin only.

You can do one more thing also,modify logon scripts or the script used to launch Eclipse so that Java is in the path. The following example assumes the BASH shell:

export PATH=/usr/java/jdk1.6.0_04/bin:$PATH as in your case.
[ March 06, 2008: Message edited by: Balasubramanian Chandrasekaran ]
 
 
subject: error in eclipse
 
Similar Threads
Eclipse Installation on HP-UNIX doesn't run
probleam in run eclipse on fedora 12
Running Eclipse remotely??
Installation of Eclipse On Linux
Eclipse not starting in RHEL4