Step 1: Verify if you have a java version: Now all you have to do is to run the following command in your terminal. Now you have all the power to install awesome tools from homebrew. (Visit this place to see any other interesting way to install cask). Verify that you have correctly installed homebrew by running the following command.Īlso, while you do this, do install the homebrew-cask by running the following command.
#Install java mac os how to how to
If you do not have the tool installed yet, please do visit homebrew’s webpage to know how to install homebrew on your local machine. IMHO, if you are going to develop java apps or, to that matter of fact any programming in your Mac, I feel its almost mandatory to have homebrew tool installed on your machine. Before getting to how to manage multiple versions of Java, let’s get to how to install java on a Mac OS X. There is an awesome way for Mac users to install and manage their Java installations in a graceful way. Part 1: Install Homebrew and Homebrew-cask: Part 3: How to manage multiple java installations using jenv. Part 2: How to install java using homebrew. Part 1: How to install homebrew and homebrew-cask Feel free to jump on to any part as per your needs. TLDR I have split this post into three parts.
The obvious next challenge would be to manage these installations and not mess up the java installation on our local machine. With Oracle opting to release for every six months (more info on this here), it’s obvious that we would end up having multiple java versions on our machine.
The Only Thing That Is Constant Is Change.