RE: PATH in java

  • From: "Borrill, Christopher" <Chris.Borrill@xxxxxx>
  • To: "oracle-l" <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 20 Oct 2006 09:23:22 +1300

I believe you can also use the version of the exec function which takes
an String[] envp argument and supply the PATH in this:

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#exec


Chris

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of John Dunn
Sent: Friday, 20 October 2006 4:39 a.m.
To: 'oracle-l'
Subject: PATH in java

I am using rt.exec in a java stored procedure to run OScommands(Unix
commands and scripts from java), however the PATH does not seem to be
set, so I have to specify the full path of the command I want to run
(e.g.
/usr/bin/lp).
How can I set the PATH so that I do not need to specify the full path of
the command?
Platform is Oracle 10.2 on various unix platforms


John

--
//www.freelists.org/webpage/oracle-l




--
//www.freelists.org/webpage/oracle-l


Other related posts: