My machines java version is 1.6 and java home is 1.7 .how to change it to 1.6 using terminal.
Asked
Active
Viewed 241 times
0
-
1Off topic : see http://askubuntu.com/ – xlecoustillier Jan 21 '13 at 10:01
-
1look at this post http://stackoverflow.com/questions/6477415/how-to-set-java-home-in-ubuntu – Aliaksei Bulhak Jan 21 '13 at 10:09
1 Answers
2
Use the "update-java-alternatives" command. Simply go:
update-java-alternatives -l
which will list your available jdks installed, then simply
update-java-alternatives -set [name]
to change the java version that you require.

Jaco Van Niekerk
- 4,180
- 2
- 21
- 48