-
Notifications
You must be signed in to change notification settings - Fork 181
faq 107918728
by Larry Walker on 2017-02-17 19:23:02
Hello everyone –
As always, thank you a ton in advance.
I've sunk a few hours into trying to make the roadpricing contrib work, and am getting stuck on issues that I suspect are due to my light experience with Java/Eclipse/Git.
In short:
(1) I took the RunRoadPricingExample.java file (from here) and inserted it into its own package within my matsim Java project in Eclipse. One thing I've done that I suspect is partway to a solution is that I downloaded the roadpricing zip file from here and placed it into the location suggested here. This is how it looks in Eclipse now:
(2) So now the code in the RunRoadPricingExample.java file looks like this:
(3) I tried a few ways of getting Eclipse to recognize the RoadPricingConfigGroup and RoadPricingModule references, but everything I tried (included a few that succeeded at that goal) broke something else.
Any tips on how to get this to run? Thanks!
by Marcel Rieser on 2017-02-17 21:32:16
In Eclipse, try a right-click on the file roadpricing-0.8.0.jar
and select Build Path > Add to Build Path
.
After that, Eclipse should know that you can also use the classes defined in the roadpricing jar-file, like the RoadPricingConfigGroup
.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq