When I run this

Java Code:
 Process p = Runtime.getRuntime().exec("java");
I get the correct output - same as what get displayed in a command prompt.

But when I do the same for

Java Code:
 Process p = Runtime.getRuntime().exec("keytool");
I am not getting any response back.

Is this the correct way of calling a keytool command from a java program?
Any inputs on this would be greatly appreciated.