Add plugin to classpath [message #448509] |
Tue, 25 April 2006 05:29  |
Eclipse User |
|
|
|
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 #448586 is a reply to message #448550] |
Thu, 27 April 2006 08:21  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07083 seconds