You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
Yes..try this:
Runtime rt = Runtime.getRuntime();
String command = "cmd /c 'command_to launch_ c_program' ";
Process p = null;
try {
p = rt.exec(command);
}
catch(IOException e) {
}
This is ok if your platform is windows.
U have to substitute the 'command_to launch_ c_program' with the command that u use normaly to lanuch your c program from console..
Have fun..Bye.