diff --git a/Casks/java6.rb b/Casks/java6.rb index 36bc935be..7a11d3d07 100644 --- a/Casks/java6.rb +++ b/Casks/java6.rb @@ -5,9 +5,10 @@ cask :v1 => 'java6' do url 'http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2014-001.dmg' homepage 'http://support.apple.com/kb/DL1572' license :unknown - depends_on :macos => '<= :yosemite' - pkg 'JavaForOSX.pkg' + uninstall :pkgutil => 'com.apple.pkg.JavaForMacOSX107' + + depends_on :macos => '<= :yosemite' end