Homebrew-core: kafka fail o install - Javareuiremenet unsatisfied : but Java is installed

Created on 15 Oct 2017  路  4Comments  路  Source: Homebrew/homebrew-core

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

Please always follow these steps:

  • [ ] Confirmed this is a problem with brew installing one, specific Homebrew/homebrew-core formula (not cask or tap) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • [ ] Ran brew update and retried your prior step?
  • [ ] Ran brew doctor, fixed all issues and retried your prior step?
  • [ ] Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • [ ] If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)
  • What happened (include command output)
  • What you expected to happen
  • Step-by-step reproduction instructions (by running brew install commands)

Formula additions or changes

To get formulae added or changed in Homebrew please file a Pull Request
We will close issues requesting formulae changes.

Most helpful comment

brew cask install caskroom/versions/java8 should satisfy the requirement.

All 4 comments

kafka: Java 1.8 is required to install this formula.
JavaRequirement unsatisfied!

But is installed and at the correct version :

I also see this issue, installing Kafka on a brand new comp.

Reproduce:

  1. brew cask install java - installs successfully
  2. brew install kafka - outputs:
kafka: Java 1.8 is required to install this formula.
JavaRequirement unsatisfied!

You can install with Homebrew-Cask:
  brew cask install java

You can download from:
  https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.

brew gist-logs kafka:

Error: No logs.

brew config:

HOMEBREW_VERSION: 1.3.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 91ab116ace7f4f97d3440190463c93be9ec6d675
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a75a98e8bd2204036db54be970b4ef3a654178ef
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.13.5 => /Library/Developer/CommandLineTools/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 9
macOS: 10.12.6-x86_64
Xcode: N/A
CLT: 9.0.0.0.1.1504363082
X11: N/A

brew doctor:

Your system is ready to brew.

/usr/libexec/java_home:

/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home

experiencing the same issue and have identical config and output as @shacharz

brew cask install caskroom/versions/java8 should satisfy the requirement.

Was this page helpful?
0 / 5 - 0 ratings