Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » wdt: import java application project into dynamic web project(how do you do it)
wdt: import java application project into dynamic web project [message #677637] Thu, 09 June 2011 03:23 Go to next message
scorpdaddy Missing name is currently offline scorpdaddy Missing nameFriend
Messages: 2
Registered: June 2011
Junior Member
How does one import classes from a java application project to a dynamic web project. The classnotfound exception is getting old. Google not helping. Recognized: that build path != classpath of servlet. Looked in .metadata/.../web-inf/classes and the classes that are there at build time are not copied to this classes folder in web apps working copy. There are many mediocre ways *around* this. But there must be a right way to persuade wdt to copy the classes of other projects to the working copy of web-inf/classes? It knows to use them at build time. Apologies if this is the 100th time asking this. Got nowhere searching.
Re: wdt: import java application project into dynamic web project [message #677642 is a reply to message #677637] Thu, 09 June 2011 03:48 Go to previous message
Mart  is currently offline Mart Friend
Messages: 5
Registered: May 2011
Junior Member
I have also struggled with eclipse's confusing array of mechanisms for managing project dependencies, none of which work particularly well.

Is there a reason you can't put the shared code into a library? Make sure the library is a Java EE Utility Project. I'm not sure what the difference is meant to be between that and a normal java project, but it allows you to add the library to the Java EE Module Dependencies section of the web project's properties.

Trying to add specific classes from an application project is probably not the best way to go.
Previous Topic:Step Into grayed out in Debug perspective
Next Topic:Eclipse Error - See log file
Goto Forum:
  


Current Time: Sat Apr 20 00:31:35 GMT 2024

Powered by FUDForum. Page generated in 0.02873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top