Using HomeBrew to Install Java JDK11 on MacOS (2021)

<p>I know there is a post with the&nbsp;<a href="https://medium.com/macoclock/using-homebrew-to-install-java-jdk11-on-macos-44b30f497b38" rel="noopener">exact same title</a>&nbsp;but since it&rsquo;s a little bit outdated I&rsquo;d like to post a slightly adjusted version for the people who is googling a updated solution.</p> <h2>Step 1: Install Homebrew (if you haven&rsquo;t done it already)</h2> <pre> $ /bin/bash -c &ldquo;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&rdquo;</pre> <h2>Step 2: Update it (if you haven&rsquo;t done it already)</h2> <pre> $ brew update</pre> <h2>Step 3: Install Java11</h2> <pre> $ brew install java11</pre> <h2>Step 4: Symlink it</h2> <p>If you skip this step the system won&rsquo;t be able to find a java runtime for you to use.</p> <p><a href="https://medium.com/@kirebyte/using-homebrew-to-install-java-jdk11-on-macos-2021-4a90aa276f1c"><strong>Click Here</strong></a></p>
Tags: macOS 2021