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