|
|
Re: Java Build Path [message #833515 is a reply to message #833475] |
Sat, 31 March 2012 16:20 |
|
On 2012.03.31 8:55, wws_ques wws_ques wrote:
> I have an annoying question that has bothered me for a while. Due to
> some reason, I need to work on a project in different environments. So,
> when I switch to a new environment, I need to manually remove the
> existing jar files and then add these jar files in the new location. I
> am just wondering whether eclipse provides a simple/single way to
> specify the dir which contains the required jar files so I dont need to
> manually add them when switching to a new environment. Thanks.
> Bill
I use this solution:
Copy your JARs to a subdirectory of your project, lib or
WebContent/WEB-INF/lib, then use Build Path -> Configure Build Path ->
Libraries -> Add JARs to add these JARs.
Why this works:
This sets up project-relative paths in <project>/.classpath that will
always be correct. I use Git, but have used Subversion and other
version-control software to share my project with other members of a
development team, each with his or her own "environment" as you say.
This solution works every time.
Last, if you use Ivy or Maven, this will be less of a problem.
|
|
|
Powered by
FUDForum. Page generated in 0.08133 seconds