You need to jar the stanford-parser with your ep.jar For this you canunjar the stanford-parser.jar using
jar -xvf stan...jar jar -cvf ep.jar stanford/directory ep/ harshira wrote: > > am new to hadoop. > > I have a file Wordcount.java which refers hadoop.jar and > stanford-parser.jar > > I am running the following commnad > > javac -classpath .:hadoop-0.20.1-core.jar:stanford-parser.jar -d ep > WordCount.java > > jar cvf ep.jar -C ep . > > bin/hadoop jar ep.jar WordCount gutenburg gutenburg1 > > After executing i am getting the following error: > > lang.ClassNotFoundException: > edu.stanford.nlp.parser.lexparser.LexicalizedParser > > The class is in stanford-parser.jar ... > I guess that different processes doesnt access this jar file . so how can > this be acheived. > > Thanks > Harshit > -- View this message in context: http://old.nabble.com/How-to-add-external-jar-file-while-running-a-hadoop-program-tp28481933p28484219.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
