Runtime.exec() gives Error: Could not find or load main class

MzP18

New Member
'Street.class' in my Eclipse project is under \bin in package trafficcircle. The error below is from stderror of the created process; I thought Runtime.exec would complain first if it wasn't found...what's up with this?Code that runs 'Street' process:\[code\] Process process = runtime.exec("java -classpath \\bin trafficcircle.Street 1 2");\[/code\]Where 'Street' is:\[code\]public class Street {/** * @param args * 0 - Simulation run time * 1 - Flow time interval */public static void main(String[] args) { System.out.println(args[0]); System.out.println(args[1]); System.out.flush();}}\[/code\]Process prints out:Error: Could not find or load main class trafficcircle.StreetProcess exitValue: 1And yes, this works on cmd line:C:\Users\Brent>java -classpath "D:\Java Programs\IPCTrafficCircle\bin" trafficcircle.Street 1 2
 
Top