Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between projects and libraries in eclipse's build path for any java project

Tags:

java

eclipse

We can add project as well as a jar file in java projects build path in eclipse. so what is the use of it?

like image 515
GuruKulki Avatar asked Dec 10 '25 04:12

GuruKulki


1 Answers

Projects on the build path allow you to create dependencies between projects in the same workspace as well as use existing libraries via adding jars to the same path.

For example, I may create a project which defines data types that are common between a client and server project. If I am working on all three as separate projects, both will depend on the common data types.

like image 200
Robin Avatar answered Dec 12 '25 16:12

Robin