Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-23-2006, 10:28 PM   #1
LQ Newbie
Registered: May 2006
Distribution: CentOS 4.3
Posts: 6

Rep: Reputation: 0
JAVA SDK install on CentOS

Hi guys, got a bit of a prob you guys most probably will be able to help me with.

Im trying to set up a Compiere CRM with the Oracle 10g Database at the moment.

I successfully installed Oracle no probs (I think) and when I try to run the compiere installer ( it comes back asking me to set the JAVA_HOME variable.

I have found tutorials for this but all explain how to install JAVA SDK, but not how to set up the variables.

Ok, I installed the j2sdk-1_4.2_11-linux-i586.bin file into my /usr/java folder. That seemed to go OK. Now Compiere says that I need to install the SDK as well as the Runtime. I "yum install java" to et the runtime.

Now how on earth do I set up the variables such as "JAVA_HOME, CLASSPATH, and PATH"? I thought I had to edit the /etc/profile file but once I did that I couldnt boot into Gnome.

If someone could walk me through it I would be very gratefull.

Also, do I need to install j2ee (Enterprise Ed) as well as the standard SDK? If so, once again, how?

Oh, and for those that might not know, CentOS is a free Redhat Enterprise 4 Clone, so all you Redhat guru's out there should know a solution

Last edited by CY83R-R0N1N; 05-23-2006 at 11:42 PM.
Old 05-24-2006, 01:16 AM   #2
LQ Newbie
Registered: May 2006
Distribution: CentOS 4.3
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, I did find these three commands that set the home when entered into the xterminal

export JAVA_HOME=/usr/java/j2sdk1.4.2_11
export PATH=$JAVA_HOME/bin:$PATH

But the second I reboot the server it goes back to its default.
Old 05-24-2006, 05:53 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
When I install java, I create a script in /etc/profile.d called, make it executable and put the following
export JAVA_HOME=/opt/java
export MANPATH=$MANPATH:/opt/java/man
export PATH=$PATH:/opt/java/bin:/opt/java/jre/bin
That sets JAVA_HOME and java paths for all users. You may need to do "source /etc/profile" or logout and back in again to get the paths working right. Change the paths so that they are the same as those on your system.
Old 05-24-2006, 11:17 PM   #4
LQ Newbie
Registered: May 2006
Distribution: CentOS 4.3
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply. mmkay, I think I know what your talking about lol.


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 SDK install jet_zeng Linux - Software 5 05-10-2005 11:57 AM
how to install java 2 sdk? pdmackenzie Linux - Software 9 04-07-2004 08:39 AM
Java SDK 1.4.2 install. lifted_one Programming 4 11-06-2003 12:55 AM
Java 1.4.0 SDK install problem insom Linux - Newbie 3 09-05-2003 04:01 AM
Java SDK 1.4 Install KptnKrill Linux - Newbie 6 08-14-2003 08:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration