Arefe
Arefe

Reputation: 1059

How to import lambdaj in the Eclipse projects?

I would like to use lamdaj in a Eclipse project and needs to make this import,

  import static ch.lamdaj.Lambda.*;

I downloaded and added the lambdaj-2.4-with-dependencies.jar inside a jar folder in the Eclipse as following,

enter image description here

and then, added the JAR in the Java build path as following, enter image description here

What else I will need to do to make the work ?

Upvotes: 0

Views: 423

Answers (1)

Michal
Michal

Reputation: 2423

The project set-up is correct. The compile error is caused by spelling error in the import statement.

Please change the import statement to import static ch.lambdaj.Lambda.*;

Upvotes: 1

Related Questions