LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2007, 04:09 PM   #1
michaeltipton2222
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
installing java on linux (CentOS)


I am trying to get Java 1.4.2-15 running on Centos 5. The "bin" file is installed, but I am having trouble seeing the correct path name for "java" appear in the "PATH" variable when I reboot. Also, are there any variables that need to be set?
 
Old 08-01-2007, 04:37 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Put this at the bottom of /etc/profile

export JAVA_HOME=/path/to/java directory

or if you mean JRE instead of JDK, then you'd use export JRE_HOME=...

Then do:
source /etc/profile

And check by doing:
echo $JAVA_HOME (or$ JRE_HOME)
You may need to become root first
 
  


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
Java Plugin issue in Centos 5 (RedHat 5) bned Linux - Software 1 06-11-2007 09:43 PM
JAVA SDK install on CentOS CY83R-R0N1N Linux - Newbie 3 05-25-2006 12:17 AM
Problem with installing linux version 2.6.0 on CentOS ishashank Linux - Hardware 1 03-24-2006 11:44 AM
CentOS 4.2 Java and Firefox winchester169 Linux - Software 1 12-01-2005 01:47 AM


All times are GMT -5. The time now is 10:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration