Hello, possibly the path is set in an environment variable (i.e SUMO_HOME or SUMO_BINDIR). Try the traci4j mailing list: https://lists.sourceforge.net/lists/listinfo/traci4j-user%20tracu4j-user regards, Jakob
2014-10-12 0:35 GMT+02:00 fady taher <[email protected]>: > Hi , please am trying to use Traci4j , am trying to follow the example > they provided > > public class Main { > > /** > * @param args > */ > public static void main(String[] args) { > > SumoTraciConnection conn = new > SumoTraciConnection("K:/Masters/SUMO_SIMULATOR/SUMO > NETWORK/refadytaher/newNet.sumo.cfg", 1000, true); > > while (true) { > > try { > > conn.runServer(); > > conn.do_timestep(); > > Thread.sleep(1000); > > } catch (Exception e) { > e.printStackTrace(); > > } > > } > > } > } > > > > But i get the error > > {java.io.IOException: Cannot run program "/opt/sumo/sumo-0.15.0/bin/sumo": > CreateProcess error=2, The system cannot find the file specified > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) > at java.lang.Runtime.exec(Runtime.java:615) > at java.lang.Runtime.exec(Runtime.java:483) > at it.polito.appeal.traci.SumoTraciConnection.runSUMO(Unknown Source) > at it.polito.appeal.traci.SumoTraciConnection.runServer(Unknown Source) > at com.traffic.sumo.Main.main(Main.java:25) > Caused by: java.io.IOException: CreateProcess error=2, The system cannot > find the file specified > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.<init>(ProcessImpl.java:189) > at java.lang.ProcessImpl.start(ProcessImpl.java:133) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) > ... 5 more} > > noting am using sumo 0.21 and i have no idea , why am getting an error > about... > "/opt/sumo/sumo-0.15.0/bin/sumo" > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://p.sf.net/sfu/Zoho > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
