Here’s a few notes on what it took to on the latest El Capitan OSX: 10.11.1. This seems to be the best way to set this up. Install: brew update brew install caskroom/cask/brew-cask. Install: brew install jenv echo 'export PATH='$HOME/.jenv/bin:$PATH' /.zshrc echo 'eval '$(jenv init -)' /.zshrc. Install latest Java: brew cask install java.
We will download and install java on MAC OS. If you wish to install java on Windows you may skip this tutorial and may refer our tutorial Install JDK on Windows and Set Environment Path on Windows. But make sure that it’s version is either 8 or 9 as JMeter4.0 does not support Java 10 and Java 7 or it’s prior versions. Click here to.
Figure out where brew put the new Java (it’s not listed in the output!) and then run something like: jenv add /Library/Java/JavaVirtualMachines/jdk1.8.066.jdk/Contents/Home/. Then add a.java-version file containing 1.8 That works like a.ruby-version! Powered by, best viewed with JavaScript enabled.
Brew cask install java isn't working with error Downloading ######################################################################## 100.0% curl: (6) Could not resolve host: download.oracle.com curl: (22) The requested URL returned error: 408 Request Time-out Error: Download failed on Cask 'java' with message: Download failed: The incomplete download is cached at /Users/hareentej22/Library/Caches/Homebrew/Cask/java-9.0.4,11:cb4512b076cc82f959763f.dmg.incomplete.