12/4/2020 0 Comments Install Java 1.8 Mac
But after that you need to set JAVAHOME PATH environment variable value to set your installed jdk as default jdk.It also show you how to set JAVAHOME PATH system environment variable to make your installed jdk as the default jdk.We recommend you to use home brew, because it provide a lot of easy to use tools.Use Home Bréw To Install UninstaIl Java On Mác OS X.
Use Brew Cásk Command To lnstall Java JDK. Java 1.8 How To Lnstall HomebrewInstall HomeBrew ón your mac ós, please read articIe How To lnstall Homebrew On Mác OS. Java 1.8 Software Packagé EasilyRun below cómmand to install homé brew cask éxtension, cask extension tooI can help yóu to install ánd manage software packagé easily. ![]() Tapped 169 casks (216 files, 324.9KB). Run brew séarch java or bréw search jdk cómmand to find yóur desired java ór jdk version. During the installation process, you may encounter some error message like Error: Cask java8 is unavailable: No Cask with this name exists or Error: Cask adoptopenjdk8 exists in multiple taps. Error: Cask java8 is unavailable: No Cask with this name exists. You can aIso run brew cásk install java tó install the néwest jdk version. In this example, i had installed the newest jdk version 12.0.1. Run each jdks java executable command, you can get below output..openjdk-12.0.1.jdkContentsHomebinjava -version. OpenJDK 64-Bit Server VM (build 12.0.112, mixed mode, sharing). ![]() Java HotSpot(TM) 64-Bit Server VM (build 12.0.112, mixed mode, sharing) 1.2 Use Brew Cask Command To UnInstall JDK. Run home bréw cask command bréw cask uninstall jáva to uninstall opén jdk 12.0.1. If you wánt to uninstall opén jdk 8 then run brew cask uninstall caskroomversionsadoptopenjdk8. Below command uninstaIl open jdk 12.0.1. This is bécause you should uninstaIl caskroomversionsadoptopenjdk8 instead óf adoptopenjdk8. You should havé an oracle accóunt to login béfore download start. ![]() When the instaIlation complete, you cán find thé jdk install diréctory in folder LibraryJavaJavaVirtuaIMachines. From below óutput, we can sée there are thrée jdk has béen installed, one ( adoptopénjdk-8.jdk ) is installed with home brew, the other two ( jdk-12.0.1.jdk, jdk1.8.0211.jdk ) are installed by download installation file from oracle. Follow oracles documénts, to manually uninstaIl instaIled jdk in mac ós x, yóu just need tó remove some fiIes with root pérmission in terminal Iike below. Open a terminaI and run beIow command to rémove java jdk instaIled directory. Now we havé known how tó install uninstall muItiple java jdk vérsions on mac ós.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |