Switching between Java Versions

While studying it might become necessary to (re)install an older Java Version, e.g. Java 1.6, for compatibility with another system, e.g. certain version of jboss while later versions of Java are used for other projects. After installing all Java versions, the default version might not be compatible with the current project.
1 answer

Switching between Java Versions on a Linux machine

This article solves the following challenge: 

Switching between Java Versions

This article solves the following challenge: 
Switching between Java Versions
This article solves the following challenge: 
Switching between Java Versions
On a computer where Linux is used as the operation system, the following line shows all currently installed Java versions with the complete path:
sudo update-alternatives --config java
Choosing a version here will result in the current default version.
Also, it is possible to bind an alias to a java version by adding following line to $HOME/.bashrc
alias javaX='/path_to_javaX/bin/java
alias javacX='/path_to_javacX/bin/javac
to enable choosing a non-default version of java
Evaluate complexity of present statement:
Select ratingCancelGuessingPassing knowledgeKnowledgeableExpert
Your rating: None Average: 3 (1 vote)
Evaluate complexity of present statement:
Select ratingCancelGuessingPassing knowledgeKnowledgeableExpert
Your rating: 3 Average: 3 (2 votes)

Evaluate complexity of present statement:

Select ratingCancelGuessingPassing knowledgeKnowledgeableExpert

Your rating: 3 Average: 3 (2 votes)

Taggings: