Cynwin and cmd error with Jackson

Error when i try generate map from .osm file, Maven installed, Java installed, Maven and Java configurated,

Exception in thread “main” java.lang.NoClassDefFoundError: java/lang/reflect/MalformedParametersException
at com.fasterxml.jackson.module.paramnames.ParameterNamesModule.setupModule(ParameterNamesModule.java:25)
at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:817)
at io.dropwizard.jackson.Jackson.configure(Jackson.java:68)
at io.dropwizard.jackson.Jackson.newObjectMapper(Jackson.java:30)
at io.dropwizard.setup.Bootstrap.(Bootstrap.java:64)
at io.dropwizard.Application.run(Application.java:86)
at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:36)
Caused by: java.lang.ClassNotFoundException: java.lang.reflect.MalformedParametersException
at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
… 7 more

I cannot reproduce this issue on a recent windows machine.

Make sure that you installed a JDK (at least JDK8 is required, a JRE is not sufficient) and that this is reachable from cygwin:

javac -version

Please try from scratch and make sure you use the stable 1.0 branch:

git checkout 1.0

and then run this:

./graphhopper.sh -a import -i europe_germany_berlin.pbf

If this still fails run the following manually and report the output:

mvn clean install

See also my comment here https://github.com/graphhopper/graphhopper/issues/2131#issuecomment-692791971 but let’s keep discussion here.

Powered by Discourse