• Post Reply Bookmark Topic Watch Topic
  • New Topic

Project dependency in eclipse  RSS feed

Anand Athinarayanan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!