Skip to content

Commit fb9f8d5

Browse files
author
Jim Tyrrell
authored
Add JNI as a capability of the JVM
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))).
1 parent 829c8e3 commit fb9f8d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Casks/zulu.rb

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
system_command '/bin/ln',
2222
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents/Home", '/Library/Java/Home'],
2323
sudo: true
24+
system_command '/usr/libexec/PlistBuddy',
25+
args: ['-c', 'Add :JavaVM:JVMCapabilities: string JNI', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents/Info.plist"],
26+
sudo: true
2427

2528
if MacOS.version <= :mavericks
2629
system_command '/bin/rm',

0 commit comments

Comments
 (0)