Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsclass loader is unable to load swt at runtime
https://www.eclipse.org/forums/index.php/mv/msg/190410/604054/#msg_604054
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]]>Praveen 2010-01-10T12:10:10-00:00Re: class loader is unable to load swt at runtime
https://www.eclipse.org/forums/index.php/mv/msg/190410/604060/#msg_604060
> 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]]>Ankur Sharma2010-01-10T14:59:41-00:00