【发布时间】:2015-01-15 01:43:51
【问题描述】:
这个问题似乎已经回答了几次(What does "Could not find or load main class" mean? 和 https://stackoverflow.com/a/16208709/2771315),但由于某种原因,没有一个共享方法有效。
到目前为止我做了什么。
1) 在终端导航到包含 CoreNLP 源文件的目录:~/Downloads/CoreNLP-master/src
2) 选择其中一个包作为测试用例,例如执行命令java -cp "*" -mx5g edu.stanford.nlp.sentiment.SentimentPipeline -file foo.txt(根据文档,http://nlp.stanford.edu/sentiment/code.html)
我通过更改类路径-cp 条件并使用set CLASSPATH = $CLASSPATH=~/Downloads/CoreNLP-master/src 设置它尝试了上述变体,但似乎无法获得结果。有谁知道我做错了什么?如果我冒险猜测,我认为类路径有问题,但我不确定是什么。
【问题讨论】:
-
问题是您使用的版本比支持的 3.3.1 版本更新 github.com/xissy/node-stanford-simple-nlp/issues/15 斯坦福网站上的当前版本是 3.6.0。
标签: java terminal stanford-nlp