Thursday, January 14, 2016

How to Update/Change Java to a New Version In Linux

  • Download the new JDK
  • Extract it and move it to /usr/lib/jvm. Here you can find all versions of java that you have
  • Now we use a script to change the default java version [0.5 is not the java version]
 wget http://webupd8.googlecode.com/files/update-java-0.5b  
 chmod +x update-java-0.5b  
 sudo ./update-java-0.5b