Skip to content

faq 311558169

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

java.lang.IncompatibleClassChangeError

by Aseem Awad on 2018-08-25 16:53:56


Hey,

I've downloaded matsim-0.10.1. When running MATSIM for the first time I'm getting the error -

java.lang.IncompatibleClassChangeError: Found interface org.matsim.core.config.ConfigWriterHandler, but class was expected

According to an answer on StackExchange...

This happens when your runtime classpath is different than your compile time classpath.

When your application was compiled, a class (namedorg.matsim.core.config.ConfigWriterHandler in your question) existed as a class.

When your application is running at compile time, org.matsim.core.config.ConfigWriterHandler exists as an interface (instead of a class.)

This causes an IncompatibleClassChangeError to be thrown at runtime.

This is a common occurence if you had a different version of a jar file on the compile time classpath than on the runtime classpath.

Do I need to compile matsim.jar on my own? Any suggestions would help.


Comments: 2


Re: java.lang.IncompatibleClassChangeError

by Joschka Bischoff on 2018-08-25 17:01:00

Hi Asseem,

I see the problem. I'll try to fix it in the next days.

Until then, try using the MATSim example project .

Bests,

Joschka


Re: java.lang.IncompatibleClassChangeError

by Joschka Bischoff on 2018-08-26 06:04:38

Hi Aseem,

there was indeed a little bug in the downloadable package. I have now fixed it on the website

https://matsim.org/downloads/

Thanks for reporting!

Joschka

Clone this wiki locally