Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » createSharedObject in RCP leads to ClassNotFoundException
createSharedObject in RCP leads to ClassNotFoundException [message #581311] Mon, 16 May 2005 07:46 Go to next message
Simon Li is currently offline Simon LiFriend
Messages: 16
Registered: July 2009
Junior Member
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


  • Attachment: err.log
    (Size: 7.98KB, Downloaded 83 times)
Re: createSharedObject in RCP leads to ClassNotFoundException [message #581324 is a reply to message #581311] Mon, 16 May 2005 13:38 Go to previous messageGo to next message
Simon Li is currently offline Simon LiFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

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
>
>
>
Re: createSharedObject in RCP leads to ClassNotFoundException [message #581376 is a reply to message #581324] Tue, 17 May 2005 15:03 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Simon,

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.

Scott
Previous Topic:Using ECF on RCP
Next Topic:ECF Discovery API: NEW
Goto Forum:
  


Current Time: Sun Dec 21 15:11:14 GMT 2014

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

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