![]() This will display this (you may have a different version): Using java version 11.0.2-open Switching Between Java VersionsĬurrently, in the example, we are using Java 11.0.2-open, and we want to switch to Java 8.0.210-oracle. To display the current version of Java in use enter this command at the terminal: $ sdk current java Let’s also install Java 8 using this command: $ sdk install java 8.0.201-oracle Display Current Java Version Let’s say you want to install Java 11.0.0-open enter this command at the terminal: $ sdk install java 11.0.2-open This will display a list of Java versions (I’m not going to list them all here) = To display the versions of Java, you can install enter this command at the terminal: $ sdk list java To update SDKMAN enter this command at the terminal: $ sdk update List Available Version Of Java This will display the current version: SDKMAN 5.7.3+33 Update SDKMAN To check the current SDKMAN version enter this command at the terminal: $ sdk version To install SDKMAN enter this command at the terminal: $ curl -s "" | bashĪfter installation is complete close the terminal and open a new terminal. SDKMAN can be installed on Linux and Mac based system. SDKMAN also takes care of setting environment variables for you. SDKMAN is a command line tool that allows you to install different versions of Java, Gradle, Maven and more. Installing different versions by hand and setting the PATH can become a real pain at times. ![]() As Java developers, we have to work with different versions of Java from project to project.
0 Comments
Leave a Reply. |