Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How can I import code from Java project into plug-in project without copying jar ?
How can I import code from Java project into plug-in project without copying jar ? [message #197925] Thu, 19 February 2004 18:50 Go to next message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

I'd like to keep some code that is shared between a plug-in and another
Java application in a Java project (i.e. outside the plug-in project). I
can add that project to my plug-in's Build Class Path, and it compiles
fine, but how can I add it to the runtime classpath as well (this does
not happen automatically)?

I've configured the Java project such that it puts everyting into a
local jar, however I was not yet able to import that jar e.g. by
manipulating the plug-in project's plugin.xml or build.properties (in
Eclipse 2.1.2).

Your advice on how to overcome this situation is much appreciated.

Thanks,
Christian
Re: How can I import code from Java project into plug-in project without copying jar ? [message #197952 is a reply to message #197925] Thu, 19 February 2004 19:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You can't really. Plugin's must have their jars located within the
plugin itself and there must be a <required> library element pointing to
that jar.

It would be better to go the other way, have you non-plugin project
require the plugin to share the code.

--
Thanks, Rich Kulp

Re: How can I import code from Java project into plug-in project without copying jar ? [message #197959 is a reply to message #197952] Thu, 19 February 2004 19:06 Go to previous message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

Rich Kulp wrote:

> You can't really. Plugin's must have their jars located within the
> plugin itself and there must be a <required> library element pointing to
> that jar.
>
> It would be better to go the other way, have you non-plugin project
> require the plugin to share the code.

Alright, I see. So I'll do as you say and start from a library plug-in
instead.

Thanks for your quick help,
Christian
Previous Topic:EditorActionBarContributor - dropdown w/text and no image
Next Topic:Launch Framework newbie questions
Goto Forum:
  


Current Time: Sun Oct 06 07:30:13 GMT 2024

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

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

Back to the top