Reputation: 1554
I just installed a new Cask and afterwards, I ran brew doctor
, which returns Error: Cask 'java' is unreadable: undefined method
undent' for #String:0x00007f8d77a0ae40`.
Java doesn't appear under brew list
, so I tried brew list --cask
, but got the same error message again. Running /usr/libexec/java_home -V
returns:
Matching Java Virtual Machines (1):
1.8.0_121, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
I'm not sure what the issue is. Do I need to re-install Java?
Upvotes: 4
Views: 3437
Reputation: 1554
I cleared the error by deleting the update .pkg file in /usr/local/Caskroom/java/1.8.0_121-b13,e9e7ea248e2c4826b92b3f075a80e441/
Upvotes: 7