Hello,
I have a command that works very well when I call via the shell, but that does not work when I call from a Java program via the exec () method of Runtime.
Here is the code for it
When I execute the shell that gives me the System.out.println AC works but the call to exec is not working. How can I make that work. If you have any idea then please let me know, I am interested in it. Thanks in advance.Code:System.out.System.out.println("/ usr / sbin /...... \"" + + File "/ tcpot\" -T pdml> \"" + + File "/ some.xml\"""); Process p = r.exec ( "/ usr / sbin /....... \"" + + File "/ tcpot\" -T pdml> \"" + + File "/ some.xml\"");
Bookmarks