File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Project dependency in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Project dependency in eclipse" Watch "Project dependency in eclipse" New topic

Project dependency in eclipse

Anand Athinarayanan
Ranch Hand

Joined: May 20, 2011
Posts: 30
Hi All,

I'm just trying to understand the concept of Project dependency in eclipse. So please bear with me if I ask silly questions. Here goes.
I have two webprojects in my Eclipse workspace. Lets call it A and B. Both of them are to be run in the same server and same port but with different context root. A will have the context root as foo and B will have it as bar. Both A and B being web projects have java files and other resources in them. Now some of the files in project B require the files is in project A. So I added A in the dependent project of B.

Now it compiles perfectly, but if i start the server i get a class not found error. In order to avoid this I JAR ed the src files of A and added it to the web-inf/lib of B. Now my questions are

1. If i add a project dependency to another project in eclipse what are the things available to me in run time when i start my server. Say in this example, since B has A as dependent, what are the resources of A that are available to the web application B when i start my server.

2. Will I have the src files or will i have the other resources of A like any third party jars, images etc present in A.

3.How do you handle project dependency like this during run time?

More info: I use weblogic 9.2 and the auto deploy option to deploy the web projects. I use My Eclipse version 6 I.

I agree. Here's the link:
subject: Project dependency in eclipse