I use Apache Maven to manage my Java libs (jar) and some of projects that use the libs. For convinience, I use mvn eclipse:eclipse to generate Eclipse project f
mvn eclipse:eclipse
Just try using the type element inside dependency tag and mention source/jar as the type in your pom.xml
namespace.my mylib [1.0, ) jar