I want to execute a DOC command through my Java Application. I tried the following but failed. Please advice.

Java Code:
System.out.println(Runtime.getRuntime().exec("dir"));