- Joined
- Mar 26, 2009
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hi folks;
I am developing a java program that needs to run commands as if it were from command line. I have a binary in /Applications/LabPrints/Image Aligner/LabPrints.dalp
and when I run it from command line, it runs but when I try to run it form Java with
I get an error with the output:
Does anyone has any idea what I am missing? I am running the same on PC and it runs perfectly. I am also capturing the output and error streams of the created process in separate threads.
Thanks in advance...
Kamal
I am developing a java program that needs to run commands as if it were from command line. I have a binary in /Applications/LabPrints/Image Aligner/LabPrints.dalp
and when I run it from command line, it runs but when I try to run it form Java with
Code:
String cmd="\"/Applications/LabPrints/Image Aligner/LabPrints.dalp\"";
Runtime.exec(new String[]{cmd});
java.io.IOException: "/Applications/LabPrints/Image Aligner/LabPrints.dalp": not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:491)
at java.lang.Runtime.exec(Runtime.java:457)
at krs.MainClass.main(MainClass.java:28)
Does anyone has any idea what I am missing? I am running the same on PC and it runs perfectly. I am also capturing the output and error streams of the created process in separate threads.
Thanks in advance...
Kamal