Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Can not install openjdk10 #126

Closed
emartynov opened this issue Jul 5, 2019 · 2 comments · Fixed by #127
Closed

Can not install openjdk10 #126

emartynov opened this issue Jul 5, 2019 · 2 comments · Fixed by #127
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@emartynov
Copy link

I run:

brew cask install adoptopenjdk10

I'm getting 404:

Downloading https://github.com/AdoptOpenJDK/openjdk10-binaries/releases/download/jdk-10.0.2%2B13/OpenJDK10U-jdk_x64_mac_hotspot_10.0.2_13.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
@karianna karianna added the bug Something isn't working label Jul 5, 2019
@MitchellMcKenna
Copy link

Script is trying to download

https://github.com/AdoptOpenJDK/openjdk10-binaries/releases/download/jdk-10.0.2%2B13/OpenJDK10U-jdk_x64_mac_hotspot_10.0.2_13.tar.gz

but correct url is:

https://github.com/AdoptOpenJDK/openjdk10-binaries/releases/download/jdk-10.0.2%2B13.1/OpenJDK10U-jdk_x64_mac_hotspot_10.0.2_13.tar.gz

Temp fix:
vi /usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk/Casks/adoptopenjdk10.rb

and change line 5 to:

  url "https://github.com/AdoptOpenJDK/openjdk#{version.before_comma}-binaries/releases/download/jdk-#{version.before_comma}.#{version.after_comma.before_colon}%2B#{version.after_colon}.1/OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}.#{version.after_comma.before_colon}_#{version.after_colon}.tar.gz"

@karianna karianna added the good first issue Good for newcomers label Jul 10, 2019
@karianna karianna modified the milestones: June 2019, July 2019 Jul 10, 2019
@emartynov
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants