Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to load a class of swt
How to load a class of swt [message #435336] Mon, 15 August 2005 00:16 Go to next message
Eclipse UserFriend
Originally posted by: wu_yiping.21cn.com

Hi,

i build a AClass in which new a shell, and in a plug-in project ,i built a
new BClass.

in BClass i call URLClassLoader to load AClass, and call newInstance to run
ACLass, but i get a n error:

org/eclipse/swt/widgets/Canvas
error
Re: How to load a class of swt [message #435352 is a reply to message #435336] Mon, 15 August 2005 20:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: callum.devnet-uk.net

Wu Yiping wrote:
> Hi,
>
> i build a AClass in which new a shell, and in a plug-in project ,i built a
> new BClass.
>
> in BClass i call URLClassLoader to load AClass, and call newInstance to run
> ACLass, but i get a n error:
>
> org/eclipse/swt/widgets/Canvas
> error£º
> Unhandled event loop exception
>
>
> how can i do?
>

That error suggests you are using a null pointer or a class cannot be
found. You should make sure that you do not assume variables you
reference are not null, i.e. check they are not null.

Also, put in some try ... catch blocks and do a printStackTrace () to
get details on the error source.
Re: How to load a class of swt [message #435433 is a reply to message #435352] Thu, 18 August 2005 12:27 Go to previous message
Eclipse UserFriend
Originally posted by: wu_yiping.21cn.com

but in a java application,i load the class, and newInstance,it run normal,
no error happens!


"Callum Urquhart" <callum@devnet-uk.net>
??????:ddqu0t$d03$1@news.eclipse.org...
> Wu Yiping wrote:
> > Hi,
> >
> > i build a AClass in which new a shell, and in a plug-in project ,i built
a
> > new BClass.
> >
> > in BClass i call URLClassLoader to load AClass, and call newInstance to
run
> > ACLass, but i get a n error:
> >
> > org/eclipse/swt/widgets/Canvas
> > error
Previous Topic:ActionSet enablement ?
Next Topic:How to add Properties View to own RCP application
Goto Forum:
  


Current Time: Sat Dec 07 13:59:22 GMT 2024

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

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

Back to the top