Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install java8 with homebrew

Installing java8 with Homebrew seems to no longer be working. After running:

brew install caskroom/cask/java8 

I get the following error:

Error: Cask 'java8' is unavailable: '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/Casks/java8.rb' does not exist. 

Simply doing:

brew cask install java8 

Errors out with:

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

This seems like a recent development because I remember installing it this way a few months ago. Any suggestions on how to properly install java8 on MacOS nowadays?

like image 459
dmitrybelyakov Avatar asked Apr 24 '19 16:04

dmitrybelyakov


People also ask

Is Java 1.8 the same as Java 8?

In short – 8 is product version number and 1.8 is the developer version number (or internal version number). The product is the same, JDK 8, anyways.

Where is JDK 8 installed Mac?

In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-10. jdk/Contents/Home . The root directory of the JDK software installation.


1 Answers

New command is now :

brew install --cask homebrew/cask-versions/adoptopenjdk8

like image 160
Pukhraj soni Avatar answered Sep 29 '22 19:09

Pukhraj soni