Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Question on dependencies
Question on dependencies [message #155007] Fri, 02 June 2006 10:24 Go to next message
Eclipse UserFriend
Originally posted by: fraguet.yahoo.com

I've just made the switch from codewarrior and have the following problem:

I have two projects in my workspace. The first generates some classes at
location 'path1'.
The second requires these classes. To build it, I include 'path1' as an
external class folder.
The classes generated by the second project require those of the first
project at runtime; how can I make eclipse include all dependent classes
(from the 1st proect) when building the second project?
Thanks in advance!
Re: Question on dependencies [message #155031 is a reply to message #155007] Fri, 02 June 2006 13:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jefmyers.us.ibm.com

Add the first project to the second's Java Build Path. Select the
second project, right click and select Properties->Java Build
Path->Projects and hit Add...

- Jeff
Re: Question on dependencies [message #155038 is a reply to message #155031] Fri, 02 June 2006 13:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fraguet.yahoo.com

Jeff Myers wrote:

> Add the first project to the second's Java Build Path. Select the
> second project, right click and select Properties->Java Build
> Path->Projects and hit Add...

> - Jeff

I did this, but the classes from Project1 did not get copied to the 'bin'
folder from Project2, which is what I would like. Many thanks for your
suggestions.
Re: Question on dependencies [message #155050 is a reply to message #155038] Fri, 02 June 2006 13:54 Go to previous message
Eclipse UserFriend
Originally posted by: jefmyers.us.ibm.com

This is not what Build Path function does. It'll add the files from
project 1 to the build path of project 2, and to the runtime classpath
of programs in project 2. If you want to copy the files into a common
directory you'll either have to combine these two projects into one
project (perhaps two source folders) or write an ant task to perform the
copy after build.

Hope this helps,
- Jeff
Previous Topic:How to include external JAR file into your own "export"ed JAR file?
Next Topic:Running Perl Project
Goto Forum:
  


Current Time: Sat Nov 09 03:41:41 GMT 2024

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

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

Back to the top