Switch between different Java (JVM) in Ubuntu and Debian GNU Linux

Last Updated on Monday, 1 September o 09:54 Written by admin Monday, 1 September o 09:36

Have you ever needed to install different versions of java on your machine but have no idea how to switch between them? Just follow the example below.



sudo update-alternatives –config java

A menu system will appear and all you have to do is choose the number of the java version you want to use.

  • To view what Java Version you are running:
  • java -version

    Share

    Leave a Reply





    Because I value your thoughtful opinions, I encourage you to add a comment to this discussion. Don't be offended if I edit your comments for clarity or to keep out questionable matters, however, and I may even delete off-topic comments.