AdoptOpenJDK / homebrew-openjdk

AdoptOpenJDK HomeBrew Tap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to install new minor update of the jdk11?

AlexTrotsenko opened this issue · comments

When I install /re-install adoptopenjdk11 I get openjdk version "11.0.11" 2021-04-20 however there is jdk 11.0.13 available.

Is there way to specify minor version, which need to be installed, e.g. brew install --cask adoptopenjdk11.0.13?
Or should adoptopenjdk11 itself be updated somehow to point to the latest jdk11 release?

@AlexTrotsenko We've moved to adoptium.net and are producing Eclipse Temurin binaries. You'll want to uninstall the adop binary and move to that. See adoptium.net and go to the installers section :-)

@karianna thanks for link, it's indeed helpful. How about the installation from the terminal?
Does it mean that we need to use GUI now on or?

Same homebrew style installation is available

@karianna thanks for pointing out.

I have used the instructions from the home page as following, but I can't have jdk 11 installed.

% brew uninstall --cask adoptopenjdk11
% brew uninstall --cask adoptopenjdk  
% brew untap AdoptOpenJDK/openjdk
% brew install --cask temurin
% java -version
openjdk version "17.0.2" 2022-01-18

Tried to install jdk 11

% brew install --cask temurin11
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 2 formulae.
==> Updated Casks
Updated 1 cask.

Error: Cask 'temurin11' is unavailable: No Cask with this name exists.

And then jdk8 as in the README

% brew install --cask temurin8
Error: Cask 'temurin8' is unavailable: No Cask with this name exists.

Search gives me nothing either.

% brew search temurin  
==> Formulae
maturin

==> Casks
temurin ✔

Can possibly point out me to the page where it's described how to install individual jdk version as it used to be in the README of this repo?
https://github.com/AdoptOpenJDK/homebrew-openjdk#available-versions

try brew install temurin11 without the cask directive

@karianna thanks for the clarifications. However I am still not able to install it (see the logs below).

Do you possibly know what might be wrong?

% brew install temurin11
Warning: No available formula with the name "temurin11".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Hmmmmmm.

What does brew doctor tell you?

Also I assume you've run brew update first?

@karianna yes, I did run brew update before any software update. I did once again today. Here is what I got:

% brew update
Updated 1 tap (homebrew/core).
==> Updated Formulae
aws-elasticbeanstalk     cppp                     djhtml                   localstack               node@14                  youtubedr
ballerina                dbmate                   just                     mmctl                    pip-tools                yt-dlp
bee                      deno                     lmod                     newrelic-cli             teleport

You have 32 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
% brew install temurin11
Warning: No available formula with the name "temurin11".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
% brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 13.1.


Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting your PATH for example like so:
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

Warning: Your Xcode (12.5.1) is outdated.
Please update to Xcode 13.1 (or delete it).
Xcode can be updated from the App Store.


Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/share/man/man5/package-locks.5
  /usr/local/share/man/man5/shrinkwrap-json.5

OK try:

brew tap homebrew/cask-versions
brew install --cask temurin11

@karianna sorry for replying with the delay - doing brew tap homebrew/cask-versions did help!
Thanks a lot for the help and troubleshooting.

May I possibly ask you why did I need to run this command at all? E.g. what was wrong with my previous set-up?

Really not sure sorry!