File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
IDEs, Version Control and other tools
access java classes defined in another project in Eclipse
Joined: Mar 28, 2006
Apr 08, 2010 15:20:42
I created a
enterprise project which includes few
projects and one Web project. I also created a standalone
In order for my ejb project java code to use the java class defined in that standalone project, I tried the following ways --
a) For the EJB project, I added that standalone project in its "project reference"
b) For the EJB project, in its Java Build path, I added that stand alone project in the "project" tab.
It seems only method b) works and method a) does not.
Wondering why ? I thought if a project A has project B in A's project reference, then any java code in Project B should be visible to java code defined in project A, correct ?
Joined: Jun 25, 2001
Apr 09, 2010 05:12:29
You don't reference a project in a build, you reference resources.
For example, you might want Project B to be able to use Project A's build classes, but not its
classes. Referring to Project A as a unit wouldn't allow you to make that distinction.
Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: access java classes defined in another project in Eclipse
why object defined in the method are created in the heap memory?
Reuse of Data Source
Looking up local ejb in custom thread..
how do i solve this error caused due to problem in spring initiation on tomcat
Issue Whie Deploying EJB on JBoss AS 5.1.0...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015