Q: Eclipse build path not working I am trying to use the Digraph.class file contained in algs4.jar but am getting the "cannot be resolved to a type" error as shown below. I have added algs4.jar to the buildpath by right clicking > Build Path > Add to Build Path. I have tried restarting eclipse and using Project > Clean...
Any ideas what I'm doing wrong?


A: Since you did not specify your application type and IDE.. I will tell you for web project in eclipse.
Go to Project>>Right CLick>>Click Properties>>Click On Deployment Assemply>>Click Add.
Here add your required jar file and click apply. 
Hope this works!

A: In Eclipse right click on the project and expand Build Path-->Configure Build path. Select Libraries-->Click on Add External Libraries and select the lib that you want to import.
Hope this works.
