![]() ![]() We need to add the below function in your ~/.bashrc or ~/.zshrc so that we can switch between different Java versions. ![]() ![]() OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing) You can use brew to install multiple java versions and run a command to switch between the versions as required. OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7) Actually I already mentioned how to install Java JDK in the above post, but I will shortly show one more time $ brew tap adoptopenjdk/openjdk $ brew search jdkĪdoptopenjdk8-openj9-large $ brew cask install adoptopenjdk $ java -version To install the JDK on macOS: Download the JDK. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |