Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Making a JAR available to project from plugin?
Making a JAR available to project from plugin? [message #63869] Tue, 02 June 2009 17:09 Go to next message
Jeffrey Kesselman is currently offline Jeffrey KesselmanFriend
Messages: 4
Registered: July 2009
Junior Member
Hi Folks,

I'm writing my first plugin and it has a number of components. One is a
wizard that helps set up the data. That's all working great. The second
is a couple of packages of .class files that use the data.

I know how to use the Project->properties to include the jar that contains
these classes in my project, but that would involve distributing the JAR
twice, ocen as part of the plugin for the wizard to use and ocne as a
straight jar to be included in the project's properties.

That seems kind of wasteful as well as kludgy. Is there a way to make the
JAR that is in the plugin's code automatically part of a project generated
with the plugins project wizard? If not is there some other way to
package it with the plugin so it can be found and used by a project
created by that project wizard?

Thanks

JK
Re: Making a JAR available to project from plugin? [message #63895 is a reply to message #63869] Tue, 02 June 2009 19:30 Go to previous messageGo to next message
Jeffrey Kesselman is currently offline Jeffrey KesselmanFriend
Messages: 4
Registered: July 2009
Junior Member
Minor UPdate:

Oka, it seems to me other plugins such as the web plugin add libraries to
the list of libraries available in the
Proepties->JavaBuildPath->Libraries->AddLibrary... list.

Whats the black magic to do this?
Re: Making a JAR available to project from plugin? [message #64262 is a reply to message #63869] Sun, 07 June 2009 21:12 Go to previous message
Eclipse UserFriend
Originally posted by: wim.jongman.gmail.com

Hi Jeffrey,

Do you generate the JARs or are these JARs third party Jars? Where do they
come from?

Regards,

Wim




> Hi Folks,
>
> I'm writing my first plugin and it has a number of components. One is a
> wizard that helps set up the data. That's all working great. The second
> is a couple of packages of .class files that use the data.
>
> I know how to use the Project->properties to include the jar that contains
> these classes in my project, but that would involve distributing the JAR
> twice, ocen as part of the plugin for the wizard to use and ocne as a
> straight jar to be included in the project's properties.
>
> That seems kind of wasteful as well as kludgy. Is there a way to make the
> JAR that is in the plugin's code automatically part of a project generated
> with the plugins project wizard? If not is there some other way to
> package it with the plugin so it can be found and used by a project
> created by that project wizard?
>
> Thanks
>
> JK
Re: Making a JAR available to project from plugin? [message #598050 is a reply to message #63869] Tue, 02 June 2009 19:30 Go to previous message
Jeffrey Kesselman is currently offline Jeffrey KesselmanFriend
Messages: 4
Registered: July 2009
Junior Member
Minor UPdate:

Oka, it seems to me other plugins such as the web plugin add libraries to
the list of libraries available in the
Proepties->JavaBuildPath->Libraries->AddLibrary... list.

Whats the black magic to do this?
Re: Making a JAR available to project from plugin? [message #598146 is a reply to message #63869] Sun, 07 June 2009 21:12 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Jeffrey,

Do you generate the JARs or are these JARs third party Jars? Where do they
come from?

Regards,

Wim




> Hi Folks,
>
> I'm writing my first plugin and it has a number of components. One is a
> wizard that helps set up the data. That's all working great. The second
> is a couple of packages of .class files that use the data.
>
> I know how to use the Project->properties to include the jar that contains
> these classes in my project, but that would involve distributing the JAR
> twice, ocen as part of the plugin for the wizard to use and ocne as a
> straight jar to be included in the project's properties.
>
> That seems kind of wasteful as well as kludgy. Is there a way to make the
> JAR that is in the plugin's code automatically part of a project generated
> with the plugins project wizard? If not is there some other way to
> package it with the plugin so it can be found and used by a project
> created by that project wizard?
>
> Thanks
>
> JK
Previous Topic:Adding text hover to markers
Next Topic:Not getting Instance of IResource
Goto Forum:
  


Current Time: Thu Apr 25 23:50:13 GMT 2024

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

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

Back to the top