Runtime.getRuntime



I am using rt.exec 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?

John

.



Relevant Pages

  • Re: Problem when redeined macro for floats with usepackage{color}
    ... tables) so that single spacing is used. ... % - User can specify draft copies, ... The \beforepreface command creates the title page, ...
    (comp.text.tex)
  • Re: Problem when redeined macro for floats with usepackage{color}
    ... % - User can specify draft copies, ... The \beforepreface command creates the title page, ... % so that single spacing is used. ...
    (comp.text.tex)
  • Re: not in domain
    ... You can use the netdom command as long as you have admin credentials on the ... NETDOM JOIN Joins a workstation or member server to the domain. ... If you specify a domain controller, ... VBScript & Windows PowerShell Training - ...
    (microsoft.public.scripting.vbscript)
  • Re: A Solution
    ... The syntax of the command is incorrect. ... /G user:perm Grant specified user access rights. ... Wildcards can be used to specify more that one file in a command. ... CI - Container Inherit. ...
    (microsoft.public.windowsmedia.player)
  • Re: Runtime.getRuntime
    ... specify the full path of the command I want to run (e.g. ... How can I set the PATH so that I do not need to specify the full path ... export the PATH in the shell where you start Java, ...
    (comp.lang.java.help)