NOTHING HAPPENS AFTER EXECUTING THIS CODE, BUT IT COMPILES AND RUNS SUCCESSFULLY
import java.io.IOException;
public class Runx
{
public static void main(String args[])
{
try
{
String x="cmd /c dir";
Process p=Runtime.getRuntime().exec(x);
}
catch(IOException e)
{
e.printStackTrace();
}
}
}
Please help.......................