Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » build path between different plugins
build path between different plugins [message #252290] Mon, 14 June 2004 09:41 Go to next message
Eclipse UserFriend
Hi,

I've got plugin A with class whose method returns an object.

This object extends a class contained in a specific .jar file contained in a
sub-directory of plugin A. I do not own this jar file and do not wish to
have its source.

Now plugin B calls plugin A's method and receives an instance of the object.

How do I specify a build path for plugin B so as to be able to use plugin
A's object? Currently eclipse marks an error saying "The project (i.e.
plugin B) was not built since its build path is incomplete. Cannot find the
class file for [the base class contained in plugin A's .jar file]" . This
looks as though plugin B needs a reference of plugin A's jar file in order
to use the extended object. How can I have such a reference without relying
on where plugin A is specifically going to be kept?

Thanks,

Robbie Jameson
Re: build path between different plugins [message #252304 is a reply to message #252290] Mon, 14 June 2004 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Go to the Java Build Path property page for the plugin A project. Select
the Order and Export tab. Check the .jar file in question. This allows
dependent projects to reference this jar as well.

Note that this will only allow you to compile plugin B. In order for
plugin B to reference the .jar file at run time, it needs to be specified
properly in the plugin.properties file.

Robbie Jameson wrote:

> Hi,

> I've got plugin A with class whose method returns an object.

> This object extends a class contained in a specific .jar file contained in a
> sub-directory of plugin A. I do not own this jar file and do not wish to
> have its source.

> Now plugin B calls plugin A's method and receives an instance of the object.

> How do I specify a build path for plugin B so as to be able to use plugin
> A's object? Currently eclipse marks an error saying "The project (i.e.
> plugin B) was not built since its build path is incomplete. Cannot find the
> class file for [the base class contained in plugin A's .jar file]" . This
> looks as though plugin B needs a reference of plugin A's jar file in order
> to use the extended object. How can I have such a reference without relying
> on where plugin A is specifically going to be kept?

> Thanks,

> Robbie Jameson
Re: build path between different plugins [message #252324 is a reply to message #252304] Mon, 14 June 2004 11:10 Go to previous message
Eclipse UserFriend
Many thanks, that works great!

Robbie Jameson

"Dave Wegener" <wegener@cboenospam.com> wrote in message
news:cakbok$b6i$1@eclipse.org...
> Go to the Java Build Path property page for the plugin A project. Select
> the Order and Export tab. Check the .jar file in question. This allows
> dependent projects to reference this jar as well.
>
> Note that this will only allow you to compile plugin B. In order for
> plugin B to reference the .jar file at run time, it needs to be specified
> properly in the plugin.properties file.
>
> Robbie Jameson wrote:
>
> > Hi,
>
> > I've got plugin A with class whose method returns an object.
>
> > This object extends a class contained in a specific .jar file contained
in a
> > sub-directory of plugin A. I do not own this jar file and do not wish to
> > have its source.
>
> > Now plugin B calls plugin A's method and receives an instance of the
object.
>
> > How do I specify a build path for plugin B so as to be able to use
plugin
> > A's object? Currently eclipse marks an error saying "The project (i.e.
> > plugin B) was not built since its build path is incomplete. Cannot find
the
> > class file for [the base class contained in plugin A's .jar file]" .
This
> > looks as though plugin B needs a reference of plugin A's jar file in
order
> > to use the extended object. How can I have such a reference without
relying
> > on where plugin A is specifically going to be kept?
>
> > Thanks,
>
> > Robbie Jameson
>
>
Previous Topic:Adding dynamically a menu to the menu bar
Next Topic:Class not found Exception using JUnit Plugin test
Goto Forum:
  


Current Time: Mon Jun 09 15:49:37 EDT 2025

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

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

Back to the top