Skip to main content

Error when compiling Java file in Linux

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

Hi,

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 WordCount.java

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.
ddmarx
Offline
Joined: 2007-08-17
Points: 0

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