A
Alexandr Molochnikov
I am stumped by the following strange problem:
I start a GUI-based program from Eclipse; the program successfully reads
some files from a directory. Then it launches another Java program, using
Runtime.exec(). This second Java program tries to open the same (fully
qualified) file, but throws FileNotFoundException.
This happens in Java 1.4.1 under Red Hat Linux 9. The same program works
fine under all flavors of Windows.
It almost looks like the program launched through Runtime.exec(String cmd)
does not know the environment it is in - although it is supposed to inherit
it from the parent.
Anybody faced similar problem?
Thanks for any clues.
Alex Molochnikov
Gestalt Corporation
I start a GUI-based program from Eclipse; the program successfully reads
some files from a directory. Then it launches another Java program, using
Runtime.exec(). This second Java program tries to open the same (fully
qualified) file, but throws FileNotFoundException.
This happens in Java 1.4.1 under Red Hat Linux 9. The same program works
fine under all flavors of Windows.
It almost looks like the program launched through Runtime.exec(String cmd)
does not know the environment it is in - although it is supposed to inherit
it from the parent.
Anybody faced similar problem?
Thanks for any clues.
Alex Molochnikov
Gestalt Corporation