转:http://www.cnblogs.com/rilley/archive/2012/12/04/2801637.html
check-native-uptodate: compile-native: [javah] Error: Class org.apache.hadoop.conf.Configuration could not be found. BUILD FAILED /home/hadoop/src/kevinweil-hadoop-lzo-6bb1b7f/build.xml:269: compilation failed
在build.xml中添加 <classpath refid="classpath"/>
<javah classpath="${build.classes}" destdir="${build.native}/src/com/hadoop/compression/lzo" force="yes" verbose="yes"> <class name="com.hadoop.compression.lzo.LzoCompressor" /> <class name="com.hadoop.compression.lzo.LzoDecompressor" /> <classpath refid="classpath"/> </javah>