Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Add plugin to classpath
Add plugin to classpath [message #448509] Tue, 25 April 2006 05:29 Go to next message
Eclipse UserFriend
Hi,all:
I want to add a plugin of my RCP application to the system classpath
when the application startup. How to do this?
Thanks,
Stephen.
Re: Add plugin to classpath [message #448519 is a reply to message #448509] Tue, 25 April 2006 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Stephen wrote:
> Hi,all:
> I want to add a plugin of my RCP application to the system classpath
> when the application startup. How to do this?

Well, your plugin is just a jar. You could put it on the classpath with
the startup.jar (there is information on starting up eclipse using "java
-classpath startup.jar..." in the help).

1) But it would be on the system classpath as a jar with classes. It
would not have any plugin-type functionality, and of course normal
classpath rules apply re: loading classes.

2) It would not be accessible to any plugins.


What are you trying to accomplish? i.e. what's your usecase?

Later,
PW
Re: Add plugin to classpath [message #448550 is a reply to message #448519] Tue, 25 April 2006 20:20 Go to previous messageGo to next message
Eclipse UserFriend
I use jasperreport which compile a report in runtime, if the XML
file(which describe how the report to display) is not inside the plugin
that contains jasperreport,then there is runtime errors that say no
classes found,because the jasperreport classes in not in the classpath.So,
I think it should add the plugin to the classpath on runtime.
If it's not possible to add a plugin to the classpath on runtime,then
how to do in this case?
Re: Add plugin to classpath [message #448586 is a reply to message #448550] Thu, 27 April 2006 08:21 Go to previous message
Eclipse UserFriend
Stephen wrote:
> I use jasperreport which compile a report in runtime, if the XML
> file(which describe how the report to display) is not inside the plugin
> that contains jasperreport,then there is runtime errors that say no
> classes found,because the jasperreport classes in not in the
> classpath.So, I think it should add the plugin to the classpath on runtime.
> If it's not possible to add a plugin to the classpath on runtime,then
> how to do in this case?

The plugin that contains the jasperreport should use buddy classloading.
The jasperreport plugin uses Eclipse-BuddyPolicy: registered

The plugin that contains the XML uses Eclipse-RegisterBuddy: jasperreport

Then jasperreport plugin can load the XML file from the second plugin.

Later,
PW
Previous Topic:domain model as plugin
Next Topic:IEditorInput for database content?
Goto Forum:
  


Current Time: Thu Jul 03 01:29:35 EDT 2025

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

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

Back to the top