Skip to main content

Error when compiling Java file in Linux

1 reply [Last post]
Joined: 2010-07-08
Points: 0


I am trying to use Hadoop Map_Reduce and when I use the following command it gives me 48 errors
COMMAND : javac -classpath $/home/mbcooray/hadoop-2.20.2-core.jar -d wordcount_classes

ERROR : The key thing is that it says that java compiler cannot locate a package?

Eg: package org.apache.hadoop.fs does not exist

My Class Path is : /home/vadmin/hadoop-0.20.2/jdk1.6.0_20/lib

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-08-17
Points: 0

Remove the dollar sign ($) after the classpath flag and before the /home