Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » class loader is unable to load swt at runtime
class loader is unable to load swt at runtime [message #604054] Sun, 10 January 2010 12:10 Go to next message
Praveen  is currently offline Praveen Friend
Messages: 4
Registered: January 2010
Junior Member
I create a new plugin in eclipse and run it in as a seperate eclipse application , the new worbench opens successfully but when I click the menu which I created by defining actionsets in plugin.xml, my plugin doesn't run neither it shows any error.
when I debug the code which runs by clicking the menu,
the debugger comes up to this line of code only ;
Display disp= new Display();

I include all swt jars in runtime , still it says that ClassLoader is unable to load
swt.widget;

please suggest
Thanks
Re: class loader is unable to load swt at runtime [message #604060 is a reply to message #604054] Sun, 10 January 2010 14:59 Go to previous message
Ankur Sharma is currently offline Ankur SharmaFriend
Messages: 68
Registered: July 2009
Member
On 1/10/2010 5:40 PM, Praveen wrote:
> I create a new plugin in eclipse and run it in as a seperate eclipse
> application , the new worbench opens successfully but when I click the
> menu which I created by defining actionsets in plugin.xml, my plugin
> doesn't run neither it shows any error.
> when I debug the code which runs by clicking the menu,
> the debugger comes up to this line of code only ;
> Display disp= new Display();
>
> I include all swt jars in runtime , still it says that ClassLoader is
> unable to load swt.widget;
>
> please suggest
> Thanks

If you are creating a RCP application then the SWT plugins shall be added as a required plugins.
The SWT jars are added to class path when you wish to create a Java application and want to use SWT
to create UI.

hth,
--
Ankur..
Eclipse PDE UI Committer | IBM India Software Lab, Bangalore
+91-99456-94011 | @ankur_sharma | http://blog.ankursharma.org
Previous Topic:"Unsatisfied version constraint" after adding bundle
Next Topic:PDE Director throws ClassNotFoundException
Goto Forum:
  


Current Time: Wed Apr 24 19:36:56 GMT 2024

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

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

Back to the top