to set default java version in your machine type in the terminal,
sudo update-alternatives --config java
there you will get a prompt and then you can set it.
to set java home globally follow the instructions add the following lines in the .barshrc file which is located in the /home/yourusername/ directory
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
PATH=$PATH:JAVA_HOME
sudo update-alternatives --config java
there you will get a prompt and then you can set it.
to set java home globally follow the instructions add the following lines in the .barshrc file which is located in the /home/yourusername/ directory
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
PATH=$PATH:JAVA_HOME
No comments:
Post a Comment