Wednesday, January 1, 2014

Setting JAVA_HOME

Setting JAVA HOME

Make a new file, if it already doesn't exist

vi ~/.bash_profile

write this in the file and save it.

#! /bin/bash
clear

JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH


then

source it

source ~/.bash_profile