LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10: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 10:21 AM.
 
Old 11-20-2006, 10:28 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You could be running gcj instead of Sun java. What is the output of doing,
Code:
$java -version
 
Old 11-20-2006, 11:46 AM   #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, 11:56 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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 12:15 PM.
 
Old 11-20-2006, 12: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, 12: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, 12:17 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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, 12: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:53 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
Open Source Consulting | Domain Registration