0

My machines java version is 1.6 and java home is 1.7 .how to change it to 1.6 using terminal.

user1811206
  • 405
  • 1
  • 4
  • 7

1 Answers1

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