Set JAVA_HOME on *nix
Carl on jun 8th 2012 12:52 pm |
Tags: JAVA_HOME, settings, system variable, variable
If you have installed java (JRE/SDK), and you need for certain programs the system variable JAVA_HOME, you can initialyse it yourself.
Go to you home directory. Find your java install directory: which java
Edit .bashrc/.bash_profile (depends on your *nix flavour) and add:
export JAVA_HOME=[value from which java]
run:
source .bashrc/.bash_profile
READY!!!
You can check it with echo $JAVA_HOME
Filed in Linux @en