Installing java8 with Homebrew

1

I type brew cask install java8 and it fails to download.

==> Downloading https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee
######################################################################## 100.0%
curl: (7) Failed to connect to download.oracle.com port 80: Connection refused
Error: Download failed on Cask 'java8' with message: Download failed: https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jdk-8u192-macosx-x64.dmg

My questions:

  1. suggestions for making it work?
  2. is there a way to install from a pre-downloaded file?

I tried downloading the dmg manually and putting the file (jdk-8u192-macosx-x64.dmg) in /Users/myuser/Library/Caches/Homebrew and /Users/myuser/Library/Caches/Homebrew/Cask but it still tries to download the file when i do brew cask install. I'm not sure if I'm using the wrong file name or if I need to tar it or something.

Mike

Posted 2018-10-30T18:23:26.583

Reputation: 11

No answers