From fb9f8d52c405b8bd9f50b4435781e64ea5937b74 Mon Sep 17 00:00:00 2001 From: Jim Tyrrell Date: Thu, 5 Jan 2017 15:14:16 +1100 Subject: [PATCH] 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](https://github.com/joeferner/node-java/issues/90#issuecomment-45613235)). --- Casks/zulu.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Casks/zulu.rb b/Casks/zulu.rb index e3500c8aa205e..8e4f180628b07 100644 --- a/Casks/zulu.rb +++ b/Casks/zulu.rb @@ -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',