Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

563
Visualizações
How to set LD_LIBRARY_PATH on Jenkins

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?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I posted an answer to a similar question yesterday here: KDevelop4: Error while loading shared libraries

In practice, LD_LIBRARY_PATH is deprecated in many Linux OS. Use config files in /etc/ld.so.conf.d for that and run ldconfig before starting Jenkins. (see the above cited post)

EDIT [solution]:

after having discussed it in chat, the problem has been solved by adding :

#!/bin/bash
export LD_LYBRARY_PATH=${LD_LIBRARY_PATH}:<myPathForJenkins>

in a short script in /etc/profile.d/ and setting it executable with chmod +x

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda