Results 1 to 3 of 3
Hi guys, got a bit of a prob you guys most probably will be able to help me with.
Im using CentOS 4.3. For those that might not know, CentOS ...
- 05-24-2006 #1Just Joined!
- Join Date
- May 2006
- Posts
- 2
Installing JAVA SDK?????
Hi guys, got a bit of a prob you guys most probably will be able to help me with.
Im using CentOS 4.3. 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
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 (RUN_setup.sh) 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?
- 05-24-2006 #2Just Joined!
- Join Date
- May 2006
- Posts
- 2
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
export CLASSPATH=$CLASSPATH:
But the second I reboot the server it goes back to its default.
- 05-24-2006 #3
If you put those commands into your ~/.bash_profile or your /etc/profile they should be available from your bash shell.
Make sure you don't effect anything else going on in the /etc/profile if you do place them there. You need to read through it to check. The other thing to check for is if GNOME is relying on a file which has the same name as a file in the folder you have added to your PATH. Not sure why else it would break.
J2EE requires a J2EE server such as JBoss or Weblogic. These offer implementations for using the J2EE APIs. You may be able to compile without them but you will definitely need a server to use the APIs.
Regards


Reply With Quote