Error: Could not find or load main class QEUsingW2V.PostRetrievalQE.java Caused by: java.lang.ClassNotFoundException: QEUsingW2V.PostRetrievalQE.java code example

Example: Error: Could not find or load main class -Djava.library.path=.home.hdoop.hadoop-3.3.0.lib.native

Sounds silly, but if you've copied .bashrc lines from somewhere
check that the quotation marks are like this:
    export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
and not like this
    export HADOOP_OPTS=”-Djava.library.path=$HADOOP_HOME/lib/native”

...took me some time

Tags:

Misc Example