Skip to content

faq 111545763

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Error launching otfvis

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.



Comments: 1


Re: Error launching otfvis

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!

Clone this wiki locally