Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to load a class of swt
how to load a class of swt [message #459686] Sat, 13 August 2005 11:09 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 newInstance to run
ACLass, but i get a n error:

org/eclipse/swt/widgets/Canvas
Unhandled event loop exception


how can i do?
Re: how to load a class of swt [message #459745 is a reply to message #459686] Mon, 15 August 2005 10:47 Go to previous message
Omry Yadan is currently offline Omry YadanFriend
Messages: 45
Registered: July 2009
Member
try to construct your URLClassLoader like this :

URLClassLoader classLoader = new URLClassLoader(url,
getClass().getClassLoader());

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 newInstance to run
> ACLass, but i get a n error:
>
> org/eclipse/swt/widgets/Canvas
> Unhandled event loop exception
>
>
> how can i do?
>
>
Previous Topic:Color + Syntax Text Editor
Next Topic:help me to fix one warning
Goto Forum:
  


Current Time: Fri Apr 19 10:48:34 GMT 2024

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

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

Back to the top