Skip to content

Instantly share code, notes, and snippets.

@alaztetik
Created May 25, 2021 05:53
Show Gist options
  • Save alaztetik/069e969fb8dd3de4e23e9bee0f043d08 to your computer and use it in GitHub Desktop.
Save alaztetik/069e969fb8dd3de4e23e9bee0f043d08 to your computer and use it in GitHub Desktop.
Multiple JVMs on one machine
# add following lines to the .bashrc file
alias java11='/usr/lib/jvm/java-11-openjdk/bin/java'
alias javac11='/usr/lib/jvm/java-11-openjdk/bin/javac'
alias java16='/usr/lib/jvm/jdk-16.0.1/bin/java'
alias javac16='/usr/lib/jvm/jdk-16.0.1/bin/javac'
alias jshell16='/usr/lib/jvm/jdk-16.0.1/bin/jshell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment