A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
IDEs, Version Control and other tools
j2ee project dependency and project reference
Joined: Aug 07, 2006
Mar 26, 2010 09:32:14
I am using eclipse/myeclipse ide to develop EAR application. The EAR project includes some
projects and a WEB project. The question I have is quite general --
If I define a
class A in project proj_A, how can another java class B in a different project B able to access class A ?
1) let project B have a "project reference" to project A ?
2) In the properties of project B, can I choose "j2ee module dependency" and includes "project A" there ?
which way(s) is the right way ?
Joined: May 14, 2008
Mar 26, 2010 15:00:48
I usually in the properties for project B select Java Build Path, Projects tab, and click Add to add project A.
By the way, I hope that project A is not the WAR otherwise this will not work at runtime.
JBoss In Action
I agree. Here's the link:
subject: j2ee project dependency and project reference
porting to Oracle 11g weblogic server
J2ee project ws Java Project
referenced project, j2ee dependency module, java build path
access java classes defined in another project in Eclipse
Directions of Stereotype-Reading, of Navigation and of Dependency
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014