Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Setting environment variables from java

Reply
Thread Tools

Setting environment variables from java

 
 
Karim
Guest
Posts: n/a
 
      05-31-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting environment variables from java Karim Java 3 06-01-2007 04:24 PM
Setting environment variables from java Karim Java 1 05-31-2007 03:45 PM
Setting an environment variable from another environment variable marcwentink@hotmail.com Java 5 04-04-2007 10:39 PM
problem with setting Java environment variables in Linux Leo Java 2 03-21-2006 04:49 PM
Setting Environment Variables Rick Kasten Perl 2 07-07-2004 07:43 PM



Advertisments