Fixed an issue with classpath and native libraries. Very frustrating! Found answer here: https://github.com/peter-lawrey/Java-Thread-Affinity/commit/6b44eb113044741c5a2167e40e37197f4b6e4bf7