LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 11-20-2006, 11:18 AM   #1
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Rep: Reputation: 15
Problem trying to run Eclipse for the first time


I get an Error of "JVM TERMINATED. Exit code =1" in /usr/bin/java

RHEL4

What I've done:


I downloaded the JRE 1.4.2.13 from sun. I installed it by setting the proper permission and doing a ./filename. I accepted the EULA and let it install. I then rebooted. Next I downloaded Eclipse 3.1.0 which is targeted to run on J2RE SE 1.4 which I downloaded. I then double clicked the executable file. I also tried doing a ./eclipse. I then get the same error when trying to open the file both ways.What am I not doing?

Last edited by s0n|k; 11-20-2006 at 11:21 AM.
 
Old 11-20-2006, 11:28 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You could be running gcj instead of Sun java. What is the output of doing,
Code:
$java -version
 
Old 11-20-2006, 12:46 PM   #3
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
java version "1.4.2"
gcj (GCC) 3.4.3 20041212 Red Hat 3.4.3-9.EL4

Why is not detecting Sun's Java?
 
Old 11-20-2006, 12:56 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Create a script called java.sh and put the code below. Place the script in /etc/profile.d
Code:
export JAVA_HOME=/usr/java/jdk1.6.0
export MANPATH=$JAVA_HOME/man:$MANPATH
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
Make sure you edit the paths so that they match your own version of java and make it executable. After that, logout and back in again or do "source /etc/profile" and the sun java version should be detected before GCJ. If you have OpenOffice installed, then Redhat and derivatives insist on installing GCJ.

Last edited by reddazz; 11-20-2006 at 01:15 PM.
 
Old 11-20-2006, 01:09 PM   #5
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
Awesome! Thanks for the help. Where do I place this script?
 
Old 11-20-2006, 01:13 PM   #6
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
One more question. The line:

export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

I don't have a /jre folder in my java folder, so can I just do

export PATH=$JAVA_HOME/bin:$JAVA_HOME/bin:$PATH
 
Old 11-20-2006, 01:17 PM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
The script should go in /etc/profile.d. You can remove the jre section if you don't have it, but I have never seen a java directory without the jre subdirectory.
 
Old 11-20-2006, 01:25 PM   #8
s0n|k
Member
 
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
That worked! I owe you one.


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GrafPup - Live CD second time run problem waspinagermanhelmet Linux - Distributions 6 05-04-2006 05:39 PM
eclipse project run aral Programming 1 05-04-2006 04:52 PM
How to run Eclipse? max2004 Fedora 10 02-22-2006 03:37 AM
can't run eclipse tazaran Linux - Software 12 06-11-2004 04:46 PM
Can't run programs (eclipse) UberNoob Linux - Newbie 3 12-01-2003 02:52 PM


All times are GMT -5. The time now is 10:57 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration