0

I'm trying to use Guava without Maven on Eclipse. I downloaded the JAR file from here and then followed this. However, when I try to run Set<Set<Card>> combos = Sets.combinations(ImmutableSet.copyOf(board),3); where board is an array of objects, I get this exception Exception in thread "Thread-2" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableSet

My imports are

import java.util.Set; import com.google.common.collect.*;

I get the same error for any other classes from Guava.

My current package looks like this Package explorer

What am I missing?

1 Answers1

0

After starting a new project and doing the same process, it worked.