Lanc
Lanc

Reputation: 878

How to include maven built library into your project in eclipse?

I am a novice and don't have much idea. So I have a library that is built with Maven and I want to include this library in my java project in Eclipse, how do I do this? I am using Eclipse juno on MacOSx. I want to run one of the modules in this library, so the source code is provided for this module but how do i run this?

Upvotes: 0

Views: 64

Answers (1)

benzonico
benzonico

Reputation: 10833

If you are not using maven, you have to download the jar and the sources of that jar (In your case, you can download the zip file provided on the website you mention : http://code.google.com/p/cleartk/downloads/list ) and put it somewhere on your computer.

Then you have to set the build path of your project in Eclipse :

Right-click on your project -> Properties -> Java Build Path Then you can click on the Libraries tab and Add External Jars so you can point to the jar you downloaded. In this tab, you can attach the sources of this jar to have access to the source code in Eclipse (and eventually set breakpoint).

Upvotes: 3

Related Questions