Skip to main content



      Home
Home » Newcomers » Newcomers » using a project in many places
using a project in many places [message #101616] Tue, 13 September 2005 16:33 Go to next message
Eclipse UserFriend
Originally posted by: adamshaw.uchicago.edu

Greetings --

Let's say I want to use one of my Java projects within various other Java
projects.

In this case I have a project that contains a bunch of classes
representing various XML schema. I'll refer to this as the "XML project".
It's code that I wish to write once, but potentially use in several
plugins etc.

I couldn't get it to work through various common-sense attempts, like
configuring the build path of other projects to include the XML project.

I finally got it to work by exporting the XML project as a jar, and then
including that in the build path of other projects. This problem with this
is that I will have to re-export the jar every so often to make sure it's
current.

There must be a better way to do this. Know of one?

Thanks in advance.

- ams
Re: using a project in many places [message #101647 is a reply to message #101616] Wed, 14 September 2005 02:50 Go to previous message
Eclipse UserFriend
You can either define your "XML project" as a prerequesite of
the other projects or use linked source folders.

Have a look on Project creation tutorials which show several ways
to configure multiple projects with common code.
Click on Menu item Help->Help, then expand
"Java Dvpt User Guide"
+ Project configuration tutorial

HTH

Adam Shaw wrote:
> Greetings --
>
> Let's say I want to use one of my Java projects within various other
> Java projects.
>
> In this case I have a project that contains a bunch of classes
> representing various XML schema. I'll refer to this as the "XML
> project". It's code that I wish to write once, but potentially use in
> several plugins etc.
>
> I couldn't get it to work through various common-sense attempts, like
> configuring the build path of other projects to include the XML project.
>
> I finally got it to work by exporting the XML project as a jar, and then
> including that in the build path of other projects. This problem with
> this is that I will have to re-export the jar every so often to make
> sure it's current.
>
> There must be a better way to do this. Know of one?
>
> Thanks in advance.
>
> - ams
>
Previous Topic:can i resume the downloading?
Next Topic:eclipse-SDK-3.1-solaris-gtk icons hard to see
Goto Forum:
  


Current Time: Mon Apr 28 03:12:45 EDT 2025

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

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

Back to the top