I made two projects P1 and P2 in eclipse IDE. P2 depends on P1. I did not create any dependency between P1 and P2. I want to convert P1 to Jar and then make P2 use that Jar.
How do I do this ?
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.
Export your project
P1asJar. Right click on project, go to Export, go toJava, selectJar File.And then add that
Jarto theBuild Pathof projectP2. Right click on project, go to Build Path, go to Configure Build Path -> Libraries tab. Click Add External JARs button, and add the Jar.See this blog: – http://www.vogella.com/articles/Eclipse/article.html to learn various features of Eclipse.