Browse Source

Symlinks libserver.dylib to the correct lib for Java

This fixes issues where applications using java were unable to start
because this lib could not be found.
master
Jeroen Jacobs 11 years ago
parent
commit
5d10662a7a
  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'
system '/usr/bin/sudo', '-E', '--',
'/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
uninstall :pkgutil => 'com.oracle.jdk7u60',
:files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'

Loading…
Cancel
Save