How to import lambdaj in the Eclipse projects?

412 Views Asked by At

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 ?

1

There are 1 best solutions below

0
Michal On BEST ANSWER

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.*;