Library/Java/JavaVirtualMachines/ jdk-17.jdk/Contents/Home # It will output the list of the available JDKsġ7, x86_64: " OpenJDK 17" /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Homeġ.8.0_251, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home Again check the list of installed JDKs as shown below. You might be required to switch the active JDK in case it does not reflect the OpenJDK 17. OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing) OpenJDK Runtime Environment (build 17+35-2724) # It should show the version installed by us ![]() Now we will verify the installation as shown below. Sudo mv jdk-17.jdk /Library/Java/JavaVirtualMachines/ Sudo rm -rf "/Library/Java/JavaVirtualMachines/ jdk-17.jdk" ![]() You may also rename the OpenJDK 17 to install it parallel to the existing Oracle JDK 17. I have removed the existing Oracle JDK 17 (Fig 1 and Fig 4) to install OpenJDK 17. Optionally, remove the existing Oracle JDK 17. ![]() ![]() # Check the OpenJDK version using the list command # Check the downloaded file name using ls -la command Now, install the OpenJDK downloaded in the previous step using the commands as shown below.
0 Comments
Leave a Reply. |