-
Notifications
You must be signed in to change notification settings - Fork 179
faq 111545763
by Katherine York on 2017-08-25 08:53:47
I am trying to launch otfvis on windows using this command (from the book)
java -Xmx500m -cp C:\MatSim\matsim-0.8.1.jar;C:\MatSim\otfvis-0.10.0-SNAPSHOT-release\otfvis-0.10.0-SNAPSHOT\otfvis-0.10.0-SNAPSHOT.jar org.MATSim.contrib.otfvis.OTFVis
and keep getting the error "could not find or load main class". I have extracted the otfvis and libs jar files and the file paths are correct.
by Marcel Rieser on 2017-08-25 14:01:21
First, you mix a release-version of MATSim (matsim-0.8.1) with a nightly build (otfvis-0.10.0-SNAPSHOT). This could lead to problems, as the two versions might not be compatible with each other. Please either use a nightly build (0.10.0-SNAPSHOT), or a release (0.8.1, better 0.9.0).
Second: You specify org.MATSim.contrib.otfvis.OTFVis
as main class. The package and class names are actually case sensitive. Please try it with an all lower-case matsim as package name: org.matsim.contrib.otfvis.OTFVis
. Then it should hopefully work.
This is indeed a bug in the book, we'll fix it for the next version. Thanks for reporting this!
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq