aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Project dependency in eclipse" Watch "Project dependency in eclipse" New topic
Author

Project dependency in eclipse

Anand Athinarayanan
Greenhorn

Joined: May 20, 2011
Posts: 27
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.

Thanks
Anand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Project dependency in eclipse
 
Similar Threads
157 Question Help and Resourses
Dynamic Web project with multiple Java projects
ibm websphere test 157 for websphere studio application developer 4.0.3 for windows
IBM Exam 157 - Questions and Answers (Sample Exam)
Eclipse + Maven + Tomcat