Why do I get Exception in thread “main” java.lang.NoClassDefFoundError:edu/stanford/nlp/tagger/maxent/MaxentTagger?
This means your Java CLASSPATH isn’t set correctly, so the tagger (in stanford-tagger.jar) isn’t being found. See the examples in the README.txt file for how to set the classpath with the -cp or -classpath option. See, e.g., http://en.wikipedia.org/wiki/Classpath_(Java) for general discussion of the Java classpath.
Related Questions
- Why do I get "Exception in thread main java.lang.NoClassDefFoundError:" when trying to run my first Java Sound program?
- Why do I get Exception in thread "main" java.lang.NoClassDefFoundError:edu/stanford/nlp/tagger/maxent/MaxentTagger?
- How can I debug Exception in thread "main" javax.net.ssl.SSLHandshakeException: handshake failure?