Download related JDK from the Oracle JDK download page.Install & Uninstall JDK In Mac OS Manually. $ ls -l /Library/Java/JavaVirtualMachines/ĭrwxr-xr-x 3 root wheel 96 May 3 22:31 jdk-12.0.1.jdk 2. Now go to the JDK installation directory, you will find above two homebrew installed JDK directory has been removed.This is because you should uninstall caskroom/versions/adoptopenjdk8 instead of adoptopenjdk8. => Purging files for version 8,212:b03 of Cask adoptopenjdk8ĭuring the above JDK uninstall process, you may encounter the below error, Error: Cask adoptopenjdk8 exists in multiple taps. $ brew cask uninstall caskroom/versions/adoptopenjdk8 => Purging files for version 12.0.1,69cfe15208a647278a19ef0990eea691 of Cask javaīelow command uninstall open JDK 8. => Removing Generic Artifact '/Library/Java/JavaVirtualMachines/openjdk-12.0.1.jdk'. If you want to uninstall open JDK 8 then run $ brew cask uninstall caskroom/versions/adoptopenjdk8. Run homebrew cask command $ brew cask uninstall java to uninstall open JDK 12.0.1.Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing) 1.2 Use HomeBrew Cask Command To UnInstall JDK. Java(TM) SE Runtime Environment (build 12.0.1+12) jdk-12.0.1.jdk/Contents/Home/bin/java -version OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode) OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03) adoptopenjdk-8.jdk/Contents/Home/bin/java -version OpenJDK 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing) OpenJDK Runtime Environment (build 12.0.1+12) openjdk-12.0.1.jdk/Contents/Home/bin/java -version Run each JDK’s java executable command, you can get the below output. From the above output, we can see that there are three java JDK that has been installed, two open JDK, and one standard JDK.$ ls -l /Library/Java/JavaVirtualMachines/ĭrwxr-xr-x 3 root wheel 96 Jun 3 11:19 adoptopenjdk-8.jdkĭrwxr-xr-x 3 root wheel 96 May 3 22:31 jdk-12.0.1.jdk # List all the installed jdk in java home directory. Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |