I assume that you are getting the error you are throwing. Try using ProcessBuilder.redirectErrorStream(true);
When you try to run a command, it does not start in the shell and an error may appear that you do not see on the command line. I would obviously use
"java","-classpath","bin","trafficcircle.Street","1","2"`
and make sure you get error messages.
another option is to use a shell like
"/bin/bash", "-c", "java -classpath bin trafficcircle.Street 1 2"
source share