Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 #21289 is a reply to message #21270] Fri, 29 December 2006 15:28 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
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!
>
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #21300 is a reply to message #21289] Fri, 29 December 2006 15:51 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
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 #21509 is a reply to message #21309] Fri, 29 December 2006 16:50 Go to previous message
Eclipse UserFriend
Originally posted by: ira.greenstein.realtimerecovery.com

Chris,

Thank you for the response. The work that you and your group are doing is
what keeps me coming back to developing on the Eclipse platform.

Thanks!

-Ira
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #573258 is a reply to message #21270] Fri, 29 December 2006 15:28 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
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!
>
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #573302 is a reply to message #21289] Fri, 29 December 2006 15:51 Go to previous message
Eclipse UserFriend
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 Go to previous message
Chris Gross is currently offline Chris GrossFriend
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
>
Re: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas [message #573374 is a reply to message #21309] Fri, 29 December 2006 16:50 Go to previous message
Eclipse UserFriend
Originally posted by: ira.greenstein.realtimerecovery.com

Chris,

Thank you for the response. The work that you and your group are doing is
what keeps me coming back to developing on the Eclipse platform.

Thanks!

-Ira
Previous Topic:java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
Next Topic:Grid, GridViewer, large data sets
Goto Forum:
  


Current Time: Thu Apr 18 07:51:18 GMT 2024

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

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

Back to the top