Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to add runtime library to a simple plugin project?
How to add runtime library to a simple plugin project? [message #72709] Fri, 04 July 2003 04:24 Go to next message
Eclipse UserFriend
Originally posted by: krush_krush.hotmail.com

I guess I still don't really understand the PDE mechanism.

I want to create a simple plugin project, and add
some jar files into the project as the runtime
libraries (as seen in Runtime tab of the manifest
editor). This would be like the org.apache.xerces
plugin in Eclipse as maintained by IBM, just
the jar file of xerces.

This is so that other plugins that depend on these
libraries can add it to their dependency list.

I imported the jar files into my plugin project,
but then how do I add these jar files to the
runtime library in the manifest editor?

I tried by adding it and modify the name to match the
jar file name, but how about the library content?

thanks for any help.

kk
Re: How to add runtime library to a simple plugin project? [message #73795 is a reply to message #72709] Mon, 07 July 2003 16:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi konrad,

> I guess I still don't really understand the PDE mechanism.
>
> I want to create a simple plugin project, and add
> some jar files into the project as the runtime
> libraries (as seen in Runtime tab of the manifest
> editor). This would be like the org.apache.xerces
> plugin in Eclipse as maintained by IBM, just
> the jar file of xerces.
>
> This is so that other plugins that depend on these
> libraries can add it to their dependency list.

Well for a plugin this wont work. (I filed a bug
report on that couple o' weeks ago. Though there
isn't any solution on that - it's scheduled for R3.0 -
I'll tell you whats up to.

First of all Plugin's can only depend on plugins.
If you have to import a library the ordinary
way (using add external lib) to make it compile,
the library isn't accessable to the plugin at runtime.
To make things even odd, if you change the plugin
dependencies settings of your plugin, the settings
about your additional libs are overwritten without
promting (thats what my bug report was all about).

Well - to cheer you up - I have some suggestions on
your problem. Just think about the following:

1. Xerces does come with eclipse. There is a plugin
called the same way I can remember.
2. I'd never used the plugin so far. Just take a look
at the Java 1.4 libs. It comes with a XML support
as well. Better to use that for if you can relay on 1.4.


Hope that makes sence - though ;)

Bya,

Martin (Kersten)
Re: How to add runtime library to a simple plugin project? [message #73974 is a reply to message #73795] Tue, 08 July 2003 10:03 Go to previous message
Eclipse UserFriend
Martin Kersten wrote:
> Hi konrad,
>
> Well for a plugin this wont work. (I filed a bug
> report on that couple o' weeks ago. Though there
> isn't any solution on that - it's scheduled for R3.0 -
> I'll tell you whats up to.
>
> First of all Plugin's can only depend on plugins.
> If you have to import a library the ordinary
> way (using add external lib) to make it compile,
> the library isn't accessable to the plugin at runtime.
> To make things even odd, if you change the plugin
> dependencies settings of your plugin, the settings
> about your additional libs are overwritten without
> promting (thats what my bug report was all about).

Just import the JAR file into your project and add it to your
dependencies. Don't use Add External Library.

Jeff
Previous Topic:Advice on JUnit testing approach
Next Topic:Eclipse and Java
Goto Forum:
  


Current Time: Sat May 10 20:25:49 EDT 2025

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

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

Back to the top