I am having java.lang.UnsatisfiedLinkError problem while running a job from Jenkins.
<error message="no JSTAF in java.library.path" type="java.lang.UnsatisfiedLinkError">java.lang.UnsatisfiedLinkError: no JSTAF in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
Basically I need to set LD_LIBRARY_PATH
and when this is set, it works fine from command line execution. For example, when I set LD_LIBRARY_PATH
like following:
export LD_LIBRARY_PATH=</proj/lib>:$LD_LIBRARY_PATH
Upon setting, the code execution works fine from command line.
I have tried to set this LD_LIBRARY_PATH
using the EnvInjectPlugin
and injected the LD_LIBRARY_PATH
.
Still I am not sure why Jenkins is not picking up this LD_LIBRARY_PATH
. How to set this up so that Jenkins job execution will work?