Skip to content

Commit

Permalink
Add JNI as a capability of the JVM
Browse files Browse the repository at this point in the history
This is copying the behaviour found in the [java](https://github.com/caskroom/homebrew-cask/blob/master/Casks/java.rb#L21) cask and resolves an issue with node-java (as described [here](joeferner/node-java#90 (comment))).
  • Loading branch information
Jim Tyrrell authored Jan 5, 2017
1 parent 829c8e3 commit fb9f8d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Casks/zulu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
system_command '/bin/ln',
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents/Home", '/Library/Java/Home'],
sudo: true
system_command '/usr/libexec/PlistBuddy',
args: ['-c', 'Add :JavaVM:JVMCapabilities: string JNI', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents/Info.plist"],
sudo: true

if MacOS.version <= :mavericks
system_command '/bin/rm',
Expand Down

0 comments on commit fb9f8d5

Please sign in to comment.