See the available Java versions offered by SDKMAN by giving the following command sdk list java You can then check the version of the SDKMAN sdk version Step 2: List available JDKs It will install the SDKMAN in your machine. Now, copy & paste the following in the terminal and enter source "$HOME/.sdkman/bin/sdkman-init.sh" Open a new terminal and enter curl -s “" | bash The instructions are valid for most of the UNIX based operating systems including MacOS, any Linux OS (Ubuntu, Debian, MINT, Manjaro, OpenSUSE), FreeBSD, Solaris, Cygwin. Install multiple candidate JDKs using SDKMAN.By reading this article, you will learn the following: Here I will show how to manage multiple Java version on your UNIX based machine using SDKMAN. It allows us to install, remove, switch and list candidate versions of different SDKs including Java (e.g., JDK, Ant, Dotty, Gradle, Scala, and many more). SDKMAN is a Software Development Kit Manager for managing parallel versions of multiple Software Development Kits on most Unix based systems. The other elegant and convenient way is to use the SDKMAN. In that case, you have to modify a few environment variables when you need to switch your Java version. One way to achieve this is to install multiple Java versions and configure different Java versions manually. Or maybe you are working on two different projects where two different versions of Java are used. You may use Java8 or Java11 in your project, but want to learn newer versions of Java. If you are a Java developer, you may need to install multiple Java versions on your machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |