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.......................

Had similar issue few years back, you can read on it here. Advice, what other guys said there about being bad stuff to do is true. So if you let us know what you are trying to achieve we may able to help you out with more suitable solution then this one

I don't know if that works but you may want to pause and see the result.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.