Re: Setting environment variables from java
- From: Robert Klemme <shortcutter@xxxxxxxxxxxxxx>
- Date: Thu, 31 May 2007 17:45:01 +0200
On 31.05.2007 16:35, Karim wrote:
Hi,
Under linux, I have java code that runs a c executable using
Runtime.getRuntime().exec()
Before running that I have to set the LD_LIBRARY_PATH system
variable..
I tried Runtime.getRuntime().exec("setenv ....")
Runtime.getRuntime().exec("export ... ")
and I also tried System.setProperty();
and non of the above seem to do the trick..
any hints?
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#exec(java.lang.String[],%20java.lang.String[])
robert
.
- References:
- Setting environment variables from java
- From: Karim
- Setting environment variables from java
- Prev by Date: Re: streamed zip
- Next by Date: Re: shared object file - UnsatisfiedLinkError
- Previous by thread: Setting environment variables from java
- Next by thread: streamed zip
- Index(es):
Relevant Pages
|