Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Java build path
Java build path [message #199540] Sat, 08 September 2007 09:19 Go to next message
Eclipse User
Originally posted by: amnon.lahav.gmail.com

Hi ,
i've added a java project to a j2ee web project's build path.
the java project holds hibernate classes and the j2ee project does not
recognize the hibernate ?
do i need to add all needed external jars twice ? that doesn't seem logical
especialy when thinking about deployment .
Re: Java build path [message #199570 is a reply to message #199540] Mon, 10 September 2007 17:50 Go to previous message
Rob Frost is currently offline Rob Frost
Messages: 64
Registered: July 2009
Member
hi Amnon,

You will either need to create a "J2EE Module Dependency" (via
Project->Properties->J2EE Module Dependencies") between the dynamic web
project and your Java project rather than directly adding the Java project
to the build path as a project cp entry (the Web App Libraries cp container
will then expose it to the build path).

If the classes in your Java project that you wish to bundle in the WAR are
contained JARs on the Java project's build path, you will need to take an
additional step after: execute the QuickFix on the warning problem marker
associated with the cp entry for each of these JARs ("Classpath entry _ will
not be exported or published..."); this will add a WTP-specific cp entry
attribute that marks these cp entries for publish/export (and they will get
bundled in the WEB-INF/lib dir of the WAR along with the JAR for the Java
project). See the following enhancement covers better UI support for these
use case in the 3.0 timeframe:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=184094

-Rob

"Amnon" <amnon.lahav@gmail.com> wrote in message
news:fbu404$s95$1@build.eclipse.org...
>
> Hi ,
> i've added a java project to a j2ee web project's build path.
> the java project holds hibernate classes and the j2ee project does not
> recognize the hibernate ?
> do i need to add all needed external jars twice ? that doesn't seem
> logical especialy when thinking about deployment .
>
>
Previous Topic:WTP Book: Can't find Database Explorer view
Next Topic:Deploy WebTools Project with version control system
Goto Forum:
  


Current Time: Sat Aug 23 16:06:36 EDT 2014

Powered by FUDForum. Page generated in 0.02302 seconds