mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suneel Marthi <>
Subject Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mahout/math/Vector
Date Thu, 19 Dec 2013 18:05:57 GMT
U r missing mahout-math.jar from your classpath because u r only keying off mahout-core. 
Include mahout-math.jar in your javac classpath.

On Thursday, December 19, 2013 1:04 PM, Sameer Tilak <> wrote:
Hi everyone,
I used the following commands to generate the jar file:
javac -d /apps/analytics/myanalytics -classpath .:/apps/mahout/trunk/core/target/mahout-core-0.9-SNAPSHOT.jar:/users/p529444/software/hadoop-1.0.3/hadoop-core-1.0.3.jar:/apps/mahout/trunk/core/target/mahout-core-0.9-SNAPSHOT-job.jar
jar -cf myanalytics.jar myanalytics/
I am getting the enclosed error message while executing the following command:
hadoop jar /apps/analytics/myanalytics.jar myanalytics.SimpleKMeansClustering -libjars /apps/mahout/trunk/core/target/mahout-core-0.9-SNAPSHOT.jar
Warning: $HADOOP_HOME is deprecated.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mahout/math/Vector   
at java.lang.Class.forName0(Native Method)    at java.lang.Class.forName(   
at org.apache.hadoop.util.RunJar.main( by: java.lang.ClassNotFoundException:
org.apache.mahout.math.Vector    at$   
at$    at
Method)    at    at java.lang.ClassLoader.loadClass(   
at java.lang.ClassLoader.loadClass(
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message