How to load a class of swt [message #435336] |
Mon, 15 August 2005 00:16 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02974 seconds