Hi guys :) I'm actually working on a project and i have to execute a class in a new command prompt, but i have to do it using java. So in a specific class Class, i have to write the right code which call the class Sensor in a new command prompt. i have this code lines which opens a new command prompt but how to make it execute the class Sensor on that command prompt opened ?
String[] command =(new String[]{"cmd", "/k", "start", "cmd" , "\""});
Runtime.getRuntime().exec(command);
Any help would be appreciated!! Thanks in advance :)