TIBCO® Enterprise Runtime for R

Troubleshooting Running Java and TIBCO Enterprise Runtime for R on a Mac

The terrJava package requires the Java Native Interface (JNI) capability, but this capability is not enabled by default in Oracle's JDK installation.

About this task

Note: As of TERR 6.0, support for TERR on the Mac is deprecated and is no longer tested.

When you call .JavaMethod (or another terrJava function) on the Mac, if you receive the following error message, you must add the missing capability to the JDK Info.plist.

Java installation at /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home does not have required 'JNI' capability

Adding this missing capability to the Java configuration allows the JVM to sart as expected.

Procedure

Type the following one-line command to add the JNI capability to the Info.plist.
sudo /usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities: string JNI" $JAVA_HOME/../Info.plist