Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31545
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.cloud9consultinginc!news.posted.cloud9consultinginc.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Thu, 09 Apr 2015 16:17:47 -0500 |
| 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) |
| User-Agent | slrn/0.9.8.0 (FreeBSD) |
| Date | Thu, 09 Apr 2015 16:17:47 -0500 |
| Lines | 11 |
| X-Usenet-Provider | http://www.giganews.com |
| NNTP-Posting-Host | 168.100.1.1 |
| X-Trace | sv3-waQUcLebk9P6OJFALx/kyeciS2ZNDhgAPsYZubGc9kYlpoHr/Gv+GFGLpWEfefVfmvihnbfROJ2vA31!9Pu90KfzO7R2ck2LPKhartKl6pe98O6NPQae60RMbC9phalhN138A+YKOVtBR097yRt/sToABXd8!C4u83CZhf4jK2VEdqyw= |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 1654 |
| Xref | csiph.com comp.lang.java.programmer:31545 |
Show key headers only | 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
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