This question seems to have been answered a few times (What does "Could not find or load main class" mean? and https://stackoverflow.com/a/16208709/2771315) but for some reason none of the shared methods are working.
What I've done so far.
1) Navigated to the directory containing the CoreNLP source files in terminal: ~/Downloads/CoreNLP-master/src
2) Selected one of the packages as a test case e.g. executed the command java -cp "*" -mx5g edu.stanford.nlp.sentiment.SentimentPipeline -file foo.txt
(as per the docs, http://nlp.stanford.edu/sentiment/code.html)
I've tried variations of the above by altering the classpath -cp
condition and setting it using set CLASSPATH = $CLASSPATH=~/Downloads/CoreNLP-master/src
but can't seem to get a result. Does anyone know what I'm doing wrong? If I were to hazard a guess, I think that there is something wrong with the classpath but I'm not sure what.