Pages

Monday, February 10, 2014

java version configuration in ubuntu

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


No comments:

Post a Comment