I assume you have already java installed.
1/ using command “whereis java”, you should see this directory “/usr/bin/java”
2/ Go to “cd /usr/bin”, and run command “sudo unlink java”
3/ link your environment by running command “sudo ln -s /{Your_java_Path}/jre/bin/java java”
4/ Verify works by running “java -version”
For my environment out put is:
java version “1.7.0_25”
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
