Skip to content

Commit

Permalink
Add JNI as a capability of the JVM (#28607)
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 and miccal committed Jan 5, 2017
1 parent e941598 commit e7e28cb
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 e7e28cb

Please sign in to comment.