D
dhaval dalal via JavaKB.com
Hi,
I want to run a C++ executable from my JAVA API in Linux. This is the
sample of the code which i have used
////////
String[] arguments = new String[5] ;
arguments[0] = "/usr/local/code/fun/dcmdump";
arguments[1] = "+f";
arguments[2] = "/usr/local/code/fun/240.dcm";
arguments[3] = "+W";
arguments[4] = "/usr/local/code/fun";
Process p = Runtime.getRuntime().exec(arguments);
///////////
On running the test file, the program seems to hang there. dcmdump is the
name of my c++ executable and arguments [1] - [4] are its inputs. dcmdump
should accepts these inputs and dump the contents of the file 240.dcm into
the path mentioned by the last argument.
But my program jst hangs. Is the the correct way to go about??
Any suggestions or ideas!!
Please let me know
Thanks
Dhaval
I want to run a C++ executable from my JAVA API in Linux. This is the
sample of the code which i have used
////////
String[] arguments = new String[5] ;
arguments[0] = "/usr/local/code/fun/dcmdump";
arguments[1] = "+f";
arguments[2] = "/usr/local/code/fun/240.dcm";
arguments[3] = "+W";
arguments[4] = "/usr/local/code/fun";
Process p = Runtime.getRuntime().exec(arguments);
///////////
On running the test file, the program seems to hang there. dcmdump is the
name of my c++ executable and arguments [1] - [4] are its inputs. dcmdump
should accepts these inputs and dump the contents of the file 240.dcm into
the path mentioned by the last argument.
But my program jst hangs. Is the the correct way to go about??
Any suggestions or ideas!!
Please let me know
Thanks
Dhaval