Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » dependent Java projects and classpath problems...
dependent Java projects and classpath problems... [message #259548] Thu, 08 July 2004 10:33 Go to next message
Eclipse UserFriend
Originally posted by: sunay.yaldiz.gentleware.com

Hello,

I have two projects A and B, and B depends on A.
When I say in project settings that B is dependent on A, this is not
enough for B to compile in most cases. I have to add the jars in the
project A's classpath manually to the classpath of the project B.
So, whenever there is a change on the classpath of A, I also have to
change the classpath of B.

Is there a way somehow to say my project B is dependent on project A and
also add all the libraries in classpath of A to B?

All answers are appreciated,
Thanks
Sunay
Re: dependent Java projects and classpath problems... [message #259558 is a reply to message #259548] Thu, 08 July 2004 11:09 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
You need to export the libraries of A so they are visible to B. To do so,
check the libraries you want to export in the Order and Export tab in the
Java Build Path dialog.

Jerome

"Sunay Yaldiz" <sunay.yaldiz@gentleware.com> wrote in message
news:ccj7os$r12$1@eclipse.org...
>
> Hello,
>
> I have two projects A and B, and B depends on A.
> When I say in project settings that B is dependent on A, this is not
> enough for B to compile in most cases. I have to add the jars in the
> project A's classpath manually to the classpath of the project B.
> So, whenever there is a change on the classpath of A, I also have to
> change the classpath of B.
>
> Is there a way somehow to say my project B is dependent on project A and
> also add all the libraries in classpath of A to B?
>
> All answers are appreciated,
> Thanks
> Sunay
Re: dependent Java projects and classpath problems... [message #259896 is a reply to message #259558] Thu, 08 July 2004 22:11 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Also, make sure that you used the "Java Build Path" to set the dependent
projects. DO NOT use the "Project References" tab.

--
Thanks, Rich Kulp

Previous Topic:eclipse close lifttime
Next Topic:Hyperlinks? How do I add annotations to an editor?
Goto Forum:
  


Current Time: Thu Dec 26 14:52:05 GMT 2024

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

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

Back to the top