Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumscreateSharedObject in RCP leads to ClassNotFoundException
https://www.eclipse.org/forums/index.php/mv/msg/183275/581311/#msg_581311
I'm studying ECF by writing some code. When I tried adapt ECF hello sample
into an RCP, I encountered strange "java.lang.ClassNotFoundException". Can
anybody give some hint?
What I've done:
1. create a RCP application with a SWT button on the view.
2. import org.eclipse.ecf.provider.app.ClientApplication from the ECF cvs
and rename it as communication.EcfComponent in my project.
3. write a public class MySharedObject implements ISharedObject
The strange thing is:
If I run communication.EcfComponent as Java application, with application "-
communication.MySharedObject" it works fine.
If I want to init the EcfComponent in RCP, the
java.lang.ClassNotFoundException will be raised.
I attached the log for your reference.
Best Regards!
Simon Li
]]>Simon Li2005-05-16T07:46:03-00:00Re: createSharedObject in RCP leads to ClassNotFoundException
https://www.eclipse.org/forums/index.php/mv/msg/183275/581324/#msg_581324
I've found the problem. I didn't export the package in plugin.xml.
Thank you for your attention.
Best Regards!
Simon
"Simon Li" <ali_fred@21cn.com> wrote in message
news:d69jmf$3np$1@news.eclipse.org...
> Hi,
>
> I'm studying ECF by writing some code. When I tried adapt ECF hello sample
> into an RCP, I encountered strange "java.lang.ClassNotFoundException". Can
> anybody give some hint?
>
> What I've done:
> 1. create a RCP application with a SWT button on the view.
> 2. import org.eclipse.ecf.provider.app.ClientApplication from the ECF cvs
> and rename it as communication.EcfComponent in my project.
> 3. write a public class MySharedObject implements ISharedObject
>
> The strange thing is:
> If I run communication.EcfComponent as Java application, with application
"-
> communication.MySharedObject" it works fine.
> If I want to init the EcfComponent in RCP, the
> java.lang.ClassNotFoundException will be raised.
>
> I attached the log for your reference.
> Best Regards!
> Simon Li
>
>
>]]>Simon Li2005-05-16T13:38:15-00:00Re: createSharedObject in RCP leads to ClassNotFoundException
https://www.eclipse.org/forums/index.php/mv/msg/183275/581376/#msg_581376
Simon Li wrote:
> Hi,
>
> I've found the problem. I didn't export the package in plugin.xml.
Right. Note that the new 'buddy loader' addition to OSGI will help with
preventing this problem in the near future (3.1).
We also will add this question to the FAQ. Thanks.