Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Share Source between 2 web projects
Share Source between 2 web projects [message #161479] Tue, 18 July 2006 20:12 Go to next message
Rahul Kumar is currently offline Rahul KumarFriend
Messages: 4
Registered: July 2009
Junior Member
Wayne -

First of all, thanks for your quick response.

We are trying to move from JBuilder to Eclipse and I tried setting up
everything as you suggested but I am running into one problem.

I did add the Java project as a "J2EE Module Dependency" in the web
project but my web project can't find all the classes defined in the Java
Project.

Please let me know if I am missing something or am I doing something wrong.


Thanks.

Rahul


-----Original Message-----
From: Wayne Beaton [mailto:wayne.beaton@_NOSPAM_eclipse.org]
Sent: Tuesday, July 18, 2006 10:06 AM
To: Rahul Kumar
Subject: Re: Share Source between 2 web projects

Rahul Kumar wrote:
> Hi -
>
> How do I share the source code between two different web projects? I
> am able to share source between a web project and multiple Java projects.
>
> Please let me know.
>
> Thanks.
>
> Rahul
>

Put the common code in a Java project and have both web projects reference
it as a "J2EE Module Dependency" (in the project properties).
This has the same effect as packaging the Java project as a JAR and
putting into the WEB-INF/lib directory (which is exactly what will happen
when you export the Web Project).

Wayne
Re: Share Source between 2 web projects [message #161488 is a reply to message #161479] Tue, 18 July 2006 20:19 Go to previous message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Rahul Kumar wrote:

> I did add the Java project as a "J2EE Module Dependency" in the web
> project but my web project can't find all the classes defined in the
> Java Project.

Can it find some of the classes? If so, that's a little weird... Are the
classes it can't find in the default package? (I'm not sure if that
should be a problem)

Wayne
Previous Topic:Incorrect Tool Tip in Ant's build.xml
Next Topic:Share Source between 2 web projects
Goto Forum:
  


Current Time: Fri Apr 26 21:42:41 GMT 2024

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

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

Back to the top