This question has been asked before but with no real answer.
I wan't to start a Java Progam form another Java Program. In my case I wan't to start the same program(2) and then exit the original program(1) while the clone is still open.
Unfortunatly I can't get this to work with ProcessBuilder
ProcessBuilder processBuilder = new ProcessBuilder("java","Programm");
Process process = processBuilder.start();
No error message, nothing happens.
I also can't run the program from the CMD in windows.
javac shows several errors during compilation:
symbol not found, ...
I can start the program normally from Eclipse.
symbol not foundmaybe you forgot to set classpath? Especially when it works with eclipse. Also, it would help if you could provide more information and the concrete call of yourProcessBuilder