mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suneel Marthi <>
Subject Re: java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
Date Thu, 28 Nov 2013 06:59:38 GMT
you r missing Google Guava library which has these classes.  R u running a mvn build on Mahout

On Thursday, November 28, 2013 1:56 AM, Tharindu Rusira <> wrote:
Hi all,
I'm working on Mahout 0.9-SNAPSHOT version checked out from the svn trunk.
The following code generates java.lang.NoClassDefFoundError:
com/google/common/base/Preconditions where b is supposed to be true
(because both cardinality and the values are same in the two vectors dv and

// --------------- start code -----------------

double[] vals= new double[]{2.3, 2.56,4.66};

DenseVector dv=new DenseVector(vals);

Vector sv= new SequentialAccessSparseVector(3);

for(int i=0;i<vals.length;i++){



boolean b=dv.equals(sv);


// --------------- end code -----------------

Where are the classes that execute these Preconditions? Are they shipped
with Mahout or am I missing something (apparently
in my standard Java library?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message