Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31545

Re: how to set LD_LIBRARY_PATH within the Java program?

Newsgroups comp.lang.java.programmer
From "A. Bolmarcich" <aggedor@earl-grey.cloud9.net>
Subject Re: how to set LD_LIBRARY_PATH within the Java program?
References <579a6f03-93e3-4b8c-81d8-c854af1b7654@googlegroups.com>
Message-ID <slrnmidr3r.u1n.aggedor@earl-grey.cloud9.net> (permalink)
Date 2015-04-09 16:17 -0500

Show all headers | View raw


On 2015-04-09, John <xsli2@yahoo.com> wrote:
> I need to set linux environment variable LD_LIBRARY_PATH within my Java program. The reason is that the Java program calls some linux program which dynamically links to other *.so files. I could do this on the terminal first:
>
> export LD_LIBRARY_PATH=/fs/great/lib:${LD_LIBRARY_PATH}
>
> For some reason, I don't want to do it this way. I want to do it within the Java program. I googled and saw this hacking way, 
[snip]

Consider using a non-hacking way, such as replacing the execution of the linux
programs with the execution of a shell that sets the environment and then runs
the linux program.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to set LD_LIBRARY_PATH within the Java program? John <xsli2@yahoo.com> - 2015-04-09 08:28 -0700
  Re: how to set LD_LIBRARY_PATH within the Java program? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-04-09 13:20 -0400
  Re: how to set LD_LIBRARY_PATH within the Java program? "A. Bolmarcich" <aggedor@earl-grey.cloud9.net> - 2015-04-09 16:17 -0500
    Re: how to set LD_LIBRARY_PATH within the Java program? Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2015-04-10 11:19 +0000

csiph-web