> Dimitris Terzis wrote:
>
> Hi guys...
>
> I am trying to launch an external application from my Java program,
> using exec().
>
> I do Runtime.getCurrentRuntime() and then try to exec() the
> application (not internal command), providing a properly created path.
> My application has a GUI which is never displayed. However, if I type
> "ps -aux" I can see that the process is there, which is reasonable
> since, in all cases, the Process object returned from
> Runtime.getCurrentRuntime().exec(...) is valid and no IOException (or
> whatever other error) occurs.
>
> I am running JDK 1.2.2-RC2 from Sun, on a RedHat 6.1 box.
There's nothing obviously wrong with the system. I'm running the same
JDK under RH6.1 and this trivial example works:
> public class Temp
> {
> public static void main(String[] argv)
> throws java.io.IOException
> {
> Runtime.getRuntime().exec("xclock");
> }
> }
As you sure you're constructing the command correctly, and not relying
on any shell processing (like wildcard expansion) that doesn't happen
when you exec this way? Is your DISPLAY environment variable set? Can
you successfully run Java GUI apps?
Nathan
>
> Any ideas?
>
> Thanks,
>
> Dimitris
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]