Browse Source

Merge pull request #318 from jeroenj/java-symlink

Symlinks libserver.dylib to the correct lib for Java
master
Radek Simko 11 years ago
parent
commit
6f5f503a8f
  1. 4
      Casks/java7.rb

4
Casks/java7.rb

@ -20,6 +20,10 @@ class Java7 < Cask
'/bin/rm', '-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' '/bin/rm', '-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'
system '/usr/bin/sudo', '-E', '--', system '/usr/bin/sudo', '-E', '--',
'/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' '/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'
system '/usr/bin/sudo', '-E', '--',
'/bin/mkdir', '-p', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/bundle/Libraries"
system '/usr/bin/sudo', '-E', '--',
'/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"
end end
uninstall :pkgutil => 'com.oracle.jdk7u60', uninstall :pkgutil => 'com.oracle.jdk7u60',
:files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' :files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'

Loading…
Cancel
Save