![]() ![]() Installing JDK 11 using mahendran % brew install -cask temurin If first time choose the operating system way. While you have multiple options to install JDK, Choose the one which you are familiar. I dont like the fact that recommendation not specific to version 18. During the install it asked me to symblink ( sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk). Here I installed OpenJDK 18 using Homebrew. Lrwxr-xr-x 1 root wheel 42 Apr 3 09:30 openjdk.jdk -> /usr/local/opt/openjdk/libexec/openjdk.jdkĭrwxr-xr-x 3 root wheel 96 Jan 20 13:22 temurin-17.jdk $ ls -l /Library/Java/JavaVirtualMachinesĭrwxr-xr-x 3 root wheel 96 adoptopenjdk-11.jdkĭrwxr-xr-x 3 root wheel 96 adoptopenjdk-15.jdkĭrwxr-xr-x 3 root wheel 96 jdk1.8.0_151.jdk usr/local/Cellar/openjdk/18/libexec/openjdk.jdk/Contents/Home Here is two output which you can understand thisġ8 (x86_64) "Homebrew" - "OpenJDK 18" /usr/local/Cellar/openjdk/18/libexec/openjdk.jdk/Contents/Homeġ7.0.2 (x86_64) "Eclipse Temurin" - "Eclipse Temurin 17" /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Homeġ5.0.1 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 15" /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Homeġ1.0.5 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Homeġ.8.181.13 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/ugin/Contents/Homeġ.8.0_151 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home If we are using any other approach, installation recommends us to create symlink to this folder if it installs in other directory. Mac places the Java Virtual Machines under /Library/Java/JavaVirtualMachines folder when installing as mac application. So I decided to use it for JDK install as well. ![]() I use brew to install all development related tools/library/kit. For Windows, installer executable, for linux yum/rpm packages, for mac app package. Which usually download the package from the JDK vendor and installing with user interface. Most prefered/recommended way is the operating system way for end user/developer. Here are few ways I know of installing JDK ![]() It is recommended to choose an approach and stick with it while installing multiple version. We can also download the compressed content and extract. In all those installations JDK contents extracted into a directory which makes more sense for the operating system. Multiple implementors of JDK gives multiple options to instlall JDK for each operating system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |