Setting environment variables from java

Discussion in 'Java' started by Karim, May 31, 2007.

  1. Karim

    Karim Guest

    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
     
    Karim, May 31, 2007
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Kasten

    Setting Environment Variables

    Rick Kasten, Jul 7, 2004, in forum: Perl
    Replies:
    2
    Views:
    746
    Howard
    Jul 7, 2004
  2. =?Utf-8?B?YnNmbDQ0?=
    Replies:
    0
    Views:
    586
    =?Utf-8?B?YnNmbDQ0?=
    May 12, 2004
  3. Steve
    Replies:
    6
    Views:
    24,585
    lightsedge
    May 1, 2007
  4. Ulf Meinhardt
    Replies:
    0
    Views:
    671
    Ulf Meinhardt
    Oct 13, 2004
  5. Leo
    Replies:
    2
    Views:
    3,148
    Gordon Beaton
    Mar 21, 2006
  6. Replies:
    5
    Views:
    949
  7. Karim
    Replies:
    1
    Views:
    1,408
    Robert Klemme
    May 31, 2007
  8. Karim
    Replies:
    3
    Views:
    2,987
    Nigel Wade
    Jun 1, 2007
Loading...