I would even want it to go recursively multiple folders down and grab all the jar files.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t really do that through the IDE, but what you can do is do it outside the IDE and write a program to manually modify the .classpath file and add the jars.
For example, the .classpath file for your eclipse project is going to look something like this:
So what you could do is write a program which scans the directories you pass into it, and manually modifies this .classpath file to contain the jars.
Personally, I never go to the trouble of doing this and just typically put all the jars I need in one folder and include them in the project. Or, if it’s something like JBoss jars I need, I just include the ones I want.