I have used http://www.malisphoto.com/tips/tomcatonosx.html#Anchor-Native to 
setup Native with Tomcat successfully.
Specifically, I create /usr/lib/java and then do:

# Copy the native library to /usr/lib/java
sudo cp .libs/libtcnative-1.0.dylib /usr/lib/java

# Create a symbolic link in /usr/lib/java to the native library
cd /usr/lib/java
sudo ln -sfhv libtcnative-1.0.dylib libtcnative-1.dylib
sudo ln -sfhv libtcnative-1.dylib libtcnative-1.jnilib

This has worked up to 10.10, but NOT in 10.11 - Apple uses SIP to block changes 
to /usr/lib/ (and removes /usr/lib/java during an OS upgrade!).

Is there a newer way (not modifying /usr/lib) that I can use to get Native to 
work with 10.11?
(I understand I can disable SIP with “csrutil”, but I would like to keep SIP 
enabled)

[Yale Pathology Logo]
Brian Paquin
Help Desk Support Yale Pathology ITS
---------------------------------------------------
310 Cedar St. BML B50
New Haven, CT 06520
203-785-3691-office
203-785-2403-fax

Reply via email to