DEV Community

Discussion on: Install and manage multiple Java versions on Linux using alternatives

Collapse
 
katarman profile image
katarman

Hello thank for the article. How can I have multiple versions of JDK and Java ?
All the Linux distro have open-jdk in /etc/alternatives. Can I have jdk 11 and jdk 8 tohether?
Also I want to have the JDK 8 in /usr and a PATH variable java_home or java8 in system varibles, but I understand that the only way is to add variable in .bashrc.
Can you make it clear ?
Thank you in advance

Collapse
 
thegroo profile image
Marcos Maia

I have added details on the article with JDK 17 and how to switch between versions using alternatives.