Home » Eclipse Projects » Nebula » java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #21270] |
Tue, 26 December 2006 20:33 |
Eclipse User |
|
|
|
Originally posted by: ira.greenstein.austin.rr.com
OK, i need to eat some humble pie on this one. (newbie alert)
I am running Eclipse 3.2 within a Callisto distro. If i run any of the
Nebula widget example snippets, everything works as specified. However,
as i write a simple RCP application, and i run it from the IDE, i get the
error message
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
Such as when i execute the lines:
public class FilterView extends ViewPart {
......
public void createPartControl( Composite parent )
{
PShelf shelf = new PShelf(parent, SWT.BORDER);
}
What do i need to include in the run time plug-ins or classpath to get by
this error. I have already selected all plug-ins and this error was still
generated. Obviously, i am missing something simple.
Thanks!
|
|
| |
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #21300 is a reply to message #21289] |
Fri, 29 December 2006 15:51 |
Eclipse User |
|
|
|
Originally posted by: ira.greenstein.realtimerecovery.com
Chris Gross wrote:
> Hi Ira,
> This is a strange error. Did you get any errors about not loading the
> SWT plugin? I'm not sure how you would get this error if the SWT plugin
> was loaded successfully.
> -Chris
> Ira wrote:
>> OK, i need to eat some humble pie on this one. (newbie alert)
>>
>> I am running Eclipse 3.2 within a Callisto distro. If i run any of the
>> Nebula widget example snippets, everything works as specified. However,
>> as i write a simple RCP application, and i run it from the IDE, i get
>> the error message
>>
>> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
>>
>> Such as when i execute the lines:
>>
>>
>> public class FilterView extends ViewPart {
>>
>> .....
>>
>> public void createPartControl( Composite parent )
>> {
>> PShelf shelf = new PShelf(parent, SWT.BORDER);
>> }
>>
>>
>> What do i need to include in the run time plug-ins or classpath to get
>> by this error. I have already selected all plug-ins and this error was
>> still generated. Obviously, i am missing something simple.
>> Thanks!
Hello Chris,
I just found a work qround to this issue, though i'm not sure if it is
correct. My apologies, but I had not fully stated all of my steps. I
went ahead and created a plug-in from the nebula jar file, as outlined in
the book, "Eclipse Rich Client Platform". From there, i added this new
plug-in to my RCP application via the "Dependencies" form. In the "Run"
form, i added the plug-in to the application. Actually, just allowing it
to "Add Required Plug-Ins" handled that for me. When i ran the app, i
then received the error
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
Just a few minutes ago, i went ahead and in the "Nebula" plug-in, on the
"Dependencies" form, i added
org.eclipse.swt
as an experiment.
This seems to have done the trick, though i'm not sure if this is correct.
- Ira
|
|
|
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #21309 is a reply to message #21300] |
Fri, 29 December 2006 16:30 |
Chris Gross Messages: 253 Registered: July 2009 |
Senior Member |
|
|
Hi Ira,
What you did is correct. In the future, we will produce plugin/jars for
each widget that won't require you to wrap them as you've done. So
you'll just be able to use the widget as you would any other Eclipse plugin.
Regards,
-Chris
Ira wrote:
> Chris Gross wrote:
>
>> Hi Ira,
>
>> This is a strange error. Did you get any errors about not loading the
>> SWT plugin? I'm not sure how you would get this error if the SWT
>> plugin was loaded successfully.
>
>> -Chris
>
>> Ira wrote:
>>> OK, i need to eat some humble pie on this one. (newbie alert)
>>>
>>> I am running Eclipse 3.2 within a Callisto distro. If i run any of
>>> the Nebula widget example snippets, everything works as specified.
>>> However, as i write a simple RCP application, and i run it from the
>>> IDE, i get the error message
>>>
>>> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
>>>
>>> Such as when i execute the lines:
>>>
>>>
>>> public class FilterView extends ViewPart {
>>>
>>> .....
>>>
>>> public void createPartControl( Composite parent )
>>> {
>>> PShelf shelf = new PShelf(parent, SWT.BORDER);
>>> }
>>>
>>>
>>> What do i need to include in the run time plug-ins or classpath to
>>> get by this error. I have already selected all plug-ins and this
>>> error was still generated. Obviously, i am missing something simple.
>>> Thanks!
>
> Hello Chris,
>
> I just found a work qround to this issue, though i'm not sure if it is
> correct. My apologies, but I had not fully stated all of my steps. I
> went ahead and created a plug-in from the nebula jar file, as outlined
> in the book, "Eclipse Rich Client Platform". From there, i added this
> new plug-in to my RCP application via the "Dependencies" form. In the
> "Run" form, i added the plug-in to the application. Actually, just
> allowing it to "Add Required Plug-Ins" handled that for me. When i ran
> the app, i then received the error
>
> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
>
> Just a few minutes ago, i went ahead and in the "Nebula" plug-in, on the
> "Dependencies" form, i added
> org.eclipse.swt
>
> as an experiment.
>
> This seems to have done the trick, though i'm not sure if this is correct.
>
> - Ira
>
|
|
| | |
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #573302 is a reply to message #21289] |
Fri, 29 December 2006 15:51 |
Eclipse User |
|
|
|
Originally posted by: ira.greenstein.realtimerecovery.com
Chris Gross wrote:
> Hi Ira,
> This is a strange error. Did you get any errors about not loading the
> SWT plugin? I'm not sure how you would get this error if the SWT plugin
> was loaded successfully.
> -Chris
> Ira wrote:
>> OK, i need to eat some humble pie on this one. (newbie alert)
>>
>> I am running Eclipse 3.2 within a Callisto distro. If i run any of the
>> Nebula widget example snippets, everything works as specified. However,
>> as i write a simple RCP application, and i run it from the IDE, i get
>> the error message
>>
>> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
>>
>> Such as when i execute the lines:
>>
>>
>> public class FilterView extends ViewPart {
>>
>> .....
>>
>> public void createPartControl( Composite parent )
>> {
>> PShelf shelf = new PShelf(parent, SWT.BORDER);
>> }
>>
>>
>> What do i need to include in the run time plug-ins or classpath to get
>> by this error. I have already selected all plug-ins and this error was
>> still generated. Obviously, i am missing something simple.
>> Thanks!
Hello Chris,
I just found a work qround to this issue, though i'm not sure if it is
correct. My apologies, but I had not fully stated all of my steps. I
went ahead and created a plug-in from the nebula jar file, as outlined in
the book, "Eclipse Rich Client Platform". From there, i added this new
plug-in to my RCP application via the "Dependencies" form. In the "Run"
form, i added the plug-in to the application. Actually, just allowing it
to "Add Required Plug-Ins" handled that for me. When i ran the app, i
then received the error
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
Just a few minutes ago, i went ahead and in the "Nebula" plug-in, on the
"Dependencies" form, i added
org.eclipse.swt
as an experiment.
This seems to have done the trick, though i'm not sure if this is correct.
- Ira
|
|
|
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #573334 is a reply to message #21300] |
Fri, 29 December 2006 16:30 |
Chris Gross Messages: 471 Registered: July 2009 |
Senior Member |
|
|
Hi Ira,
What you did is correct. In the future, we will produce plugin/jars for
each widget that won't require you to wrap them as you've done. So
you'll just be able to use the widget as you would any other Eclipse plugin.
Regards,
-Chris
Ira wrote:
> Chris Gross wrote:
>
>> Hi Ira,
>
>> This is a strange error. Did you get any errors about not loading the
>> SWT plugin? I'm not sure how you would get this error if the SWT
>> plugin was loaded successfully.
>
>> -Chris
>
>> Ira wrote:
>>> OK, i need to eat some humble pie on this one. (newbie alert)
>>>
>>> I am running Eclipse 3.2 within a Callisto distro. If i run any of
>>> the Nebula widget example snippets, everything works as specified.
>>> However, as i write a simple RCP application, and i run it from the
>>> IDE, i get the error message
>>>
>>> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
>>>
>>> Such as when i execute the lines:
>>>
>>>
>>> public class FilterView extends ViewPart {
>>>
>>> .....
>>>
>>> public void createPartControl( Composite parent )
>>> {
>>> PShelf shelf = new PShelf(parent, SWT.BORDER);
>>> }
>>>
>>>
>>> What do i need to include in the run time plug-ins or classpath to
>>> get by this error. I have already selected all plug-ins and this
>>> error was still generated. Obviously, i am missing something simple.
>>> Thanks!
>
> Hello Chris,
>
> I just found a work qround to this issue, though i'm not sure if it is
> correct. My apologies, but I had not fully stated all of my steps. I
> went ahead and created a plug-in from the nebula jar file, as outlined
> in the book, "Eclipse Rich Client Platform". From there, i added this
> new plug-in to my RCP application via the "Dependencies" form. In the
> "Run" form, i added the plug-in to the application. Actually, just
> allowing it to "Add Required Plug-Ins" handled that for me. When i ran
> the app, i then received the error
>
> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
>
> Just a few minutes ago, i went ahead and in the "Nebula" plug-in, on the
> "Dependencies" form, i added
> org.eclipse.swt
>
> as an experiment.
>
> This seems to have done the trick, though i'm not sure if this is correct.
>
> - Ira
>
|
|
| |
Goto Forum:
Current Time: Fri Dec 13 17:43:20 GMT 2024
Powered by FUDForum. Page generated in 0.03114 seconds
|