Setting environment variables from java

K

Karim

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?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top