diff --git a/Casks/java7.rb b/Casks/java7.rb index 4b5115994..7d342ee6f 100644 --- a/Casks/java7.rb +++ b/Casks/java7.rb @@ -9,7 +9,7 @@ class Java7 < Cask homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html' install 'JDK 7 Update 67.pkg' - after_install do + postflight do system '/usr/bin/sudo', '-E', '--', '/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist" system '/usr/bin/sudo', '-E', '--',