java - Want to run optaplanner examples on my laptop but it throws an exception -
when run command ./runexamples.sh
on terminal throws exception. have checked java installed , class path set. how resolve this?
starting examples app java environment variable path... exception in thread "main" java.lang.noclassdeffounderror: org/slf4j/loggerfactory @ org.optaplanner.examples.common.app.commonapp.<clinit>(commonapp.java:36) @ org.optaplanner.examples.app.optaplannerexamplesapp.main(optaplannerexamplesapp.java:72) caused by: java.lang.classnotfoundexception: org.slf4j.loggerfactory @ java.net.urlclassloader$1.run(urlclassloader.java:372) @ java.net.urlclassloader$1.run(urlclassloader.java:361) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:360) @ java.lang.classloader.loadclass(classloader.java:424) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:308) @ java.lang.classloader.loadclass(classloader.java:357) ... 2 more
you miss slf4j.jar
in classpath. download , add it.