0
시스템 PATH에없는 프로그램을 어떻게 실행합니까 (그리고 거기에 넣고 싶지 않습니다)? 예 : 간단한 예 :Apache Commons Exec : PATH에 실행 파일이 없습니다.
String program = "/my/path/to/my/program";
new DefaultExecutor().execute(CommandLine.parse(program));
가 발생
java.io.IOException: Cannot run program "/my/path/to/my/program" (in directory ".")
(동일은 예를 들어 PATH에 프로그램 사실이다 "는/usr/빈/ls"에 같은 메시지와 함께 실패합니다..)
참고 : 작업 디렉토리를 변경하고 싶지 않습니다.