|
|
|
Re: class loader is unable to load swt at runtime [message #507033 is a reply to message #506853] |
Mon, 11 January 2010 12:57  |
Eclipse User |
|
|
|
On 1/11/2010 6:37 AM, Praveen wrote:
> This is not a RCP application , and SWT plugin dependencies are already
> included at the time of Plugin creation , I included the swt jars in
> Runtime ClassPath also, still the problem is not solved , When I debug
> the code the following values are displayed in the Variable window as I
> proceed from the following line of code :
>
> Display disp =new Display();
>
> the vaues are :
> this DefaultClassLoader
> name org.eclipse.swt.widgets.Display
> resolve false
You don't include both plugin dependencies and SWT jars to classpath. Are you sure you are not doing
an RCP application?
Since you are creating a plugin, it will run either on a host eclipse or in an RCP application. In
either case you won't create a new Display, instead use one from workbench.
The stand alone java applications needs SWT Jars in classpath. That is, they are supposed to run
without Eclipse Runtime.
I suggest you first go through SWT articles at SWT home page http://www.eclipse.org/swt/eclipse.php
Have a look at snippets http://www.eclipse.org/swt/snippets/ and example
http://www.eclipse.org/swt/examples.php before you proceed.
hth,
--
Ankur..
Eclipse PDE UI Committer | IBM India Software Lab, Bangalore
+91-99456-94011 | @ankur_sharma | http://blog.ankursharma.org
|
|
|
Re: class loader is unable to load swt at runtime [message #604063 is a reply to message #506812] |
Sun, 10 January 2010 20:07  |
Eclipse User |
|
|
|
This is not a RCP application , and SWT plugin dependencies are already included at the time of Plugin creation , I included the swt jars in Runtime ClassPath also, still the problem is not solved , When I debug the code the following values are displayed in the Variable window as I proceed from the following line of code :
Display disp =new Display();
the vaues are :
this DefaultClassLoader
name org.eclipse.swt.widgets.Display
resolve false
|
|
|
Re: class loader is unable to load swt at runtime [message #604093 is a reply to message #604063] |
Mon, 11 January 2010 12:57  |
Eclipse User |
|
|
|
On 1/11/2010 6:37 AM, Praveen wrote:
> This is not a RCP application , and SWT plugin dependencies are already
> included at the time of Plugin creation , I included the swt jars in
> Runtime ClassPath also, still the problem is not solved , When I debug
> the code the following values are displayed in the Variable window as I
> proceed from the following line of code :
>
> Display disp =new Display();
>
> the vaues are :
> this DefaultClassLoader
> name org.eclipse.swt.widgets.Display
> resolve false
You don't include both plugin dependencies and SWT jars to classpath. Are you sure you are not doing
an RCP application?
Since you are creating a plugin, it will run either on a host eclipse or in an RCP application. In
either case you won't create a new Display, instead use one from workbench.
The stand alone java applications needs SWT Jars in classpath. That is, they are supposed to run
without Eclipse Runtime.
I suggest you first go through SWT articles at SWT home page http://www.eclipse.org/swt/eclipse.php
Have a look at snippets http://www.eclipse.org/swt/snippets/ and example
http://www.eclipse.org/swt/examples.php before you proceed.
hth,
--
Ankur..
Eclipse PDE UI Committer | IBM India Software Lab, Bangalore
+91-99456-94011 | @ankur_sharma | http://blog.ankursharma.org
|
|
|
Powered by
FUDForum. Page generated in 0.04510 seconds