Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find org/joda/time/ReadablePartial when running SUTime #256

Closed
powpos360 opened this issue Sep 2, 2016 · 1 comment
Closed

Cannot find org/joda/time/ReadablePartial when running SUTime #256

powpos360 opened this issue Sep 2, 2016 · 1 comment

Comments

@powpos360
Copy link

I'm trying to run SUTime, following the instruction from SUTime page.
The command I used is

java -Dpos.model=edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger \
-cp stanford-corenlp-2016-01-10.jar:stanford-english-corenlp-2016-01-10-models.jar:xom-1.2.10.jar:joda-time.jar:jollyday-0.4.9.jar \
-Xmx3g edu.stanford.nlp.time.SUTimeMain \
-in.type TEXTFILE \
-date 2016-09-01 \
-i test.txt \
-o res.txt

However, I received this error msg:

Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [0.6 sec].
Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadablePartial
    at edu.stanford.nlp.time.TimeAnnotator.<init>(TimeAnnotator.java:189)
    at edu.stanford.nlp.time.TimeAnnotator.<init>(TimeAnnotator.java:185)
    at edu.stanford.nlp.time.SUTimeMain.getPipeline(SUTimeMain.java:900)
    at edu.stanford.nlp.time.SUTimeMain.main(SUTimeMain.java:1058)
Caused by: java.lang.ClassNotFoundException: org.joda.time.ReadablePartial
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 4 more

It seems that something in joda time is missing? But I add joda-time.jar to the -cp arg already.
Has anyone run into this problem before? Thx a lot.

@manning
Copy link
Member

manning commented Sep 12, 2016

This works for me. I think you just don't have jodatime validly on your classpath. Is your jar called exactly jollyday-0.4.9.jar and in the same directory? Reopen if you're sure something is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants