How to Install And Work On Multiple Versions of Java JDK on the Same Machine | Programming Mitra

preview_player
Показать описание
How to Install And Work On Multiple Versions of Java JDK on the Same Machine

Description: -
If you are working on multiple projects some of which use Java 8 and some new projects are using Java 11. So in order to work on these projects parallelly, you will need to install multiple JDK on your machine and you should be able to switch between them, We can use SDKMan to do so with below commands.

Command to list all available java versions
$ sdk list java

Command to install Java 11
$ sdk install java 11.0.2-open

Command to switch between JDKs
$ sdk default java java_version

Command to uninstall Java 11
$ sdk uninstall java 11.0.2-open

-----
Follow me here:

Рекомендации по теме
Комментарии
Автор

Great video keep up the great work.

We are currently thinking of switching to use adoptjdk 11 from oracle jdk 8 at work. So switching between versions easily would be great. Thank you for the tip.

DanielPersson
Автор

currently I'm using jdk16 for my java projects. Now I'm trying to learn r3corda which supports jdk8. i hope this process will work for me. I'll update once done.

darwinbonsol
Автор

wow! we cant read it from the website? thank you for the help..xd

mdnadeem