I have a test which runs great on my development MacBook Pro, but fails to run in continuous integration TeamCity server.
The error is following:
jav
Make sure you know the path to JAVA_HOME that your IDE uses. In order to copy to the correct path.
In my case I use IntelliJ: /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/security
Instead of when i show the $JAVA_HOME in the console. /Users/myuser/.sdkman/candidates/java/current/jre/lib/security