Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Build path problem
Build path problem [message #227712] Thu, 16 August 2007 10:18 Go to next message
Srdan Bejakovic is currently offline Srdan BejakovicFriend
Messages: 8
Registered: July 2009
Junior Member
I posted this earlier but got no response so I am reposting. I created a
plugin, which worked fine. Then, after a restart, the following error
appeared:

The type org.eclipse.swt.widgets.Shell cannot be resolved. It is
indirectly referenced from required .class files

Eclipse suggests that I configure my build path. On the Java Build Path
properties page, under the Libraries tab, the Plug-in Dependencies lists
org.eclipse.swt. So what's wrong?
Re: Build path problem [message #227719 is a reply to message #227712] Thu, 16 August 2007 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wir_hier_2004.yahoo.de

Srdan Bejakovic wrote:
> I posted this earlier but got no response so I am reposting. I created a
> plugin, which worked fine. Then, after a restart, the following error
> appeared:
>
> The type org.eclipse.swt.widgets.Shell cannot be resolved. It is
> indirectly referenced from required .class files
>
> Eclipse suggests that I configure my build path. On the Java Build Path
> properties page, under the Libraries tab, the Plug-in Dependencies lists
> org.eclipse.swt. So what's wrong?

Hi!

I'm a tenderfoot, but I think you have the problem, that a class you
import and use requires another one called
"org.eclipse.swt.widgets.Shell" which is not in your buildpath. (sounds
more like a translation than a real answer...).

Add the missing class (or the jar including the file) to your build path
and all should work fine.

Greetings
eventhorizon
Re: Build path problem [message #227737 is a reply to message #227719] Thu, 16 August 2007 11:42 Go to previous messageGo to next message
Srdan Bejakovic is currently offline Srdan BejakovicFriend
Messages: 8
Registered: July 2009
Junior Member
eventhorizon wrote:
> Srdan Bejakovic wrote:
>> I posted this earlier but got no response so I am reposting. I created a
>> plugin, which worked fine. Then, after a restart, the following error
>> appeared:
>>
>> The type org.eclipse.swt.widgets.Shell cannot be resolved. It is
>> indirectly referenced from required .class files
>>
>> Eclipse suggests that I configure my build path. On the Java Build Path
>> properties page, under the Libraries tab, the Plug-in Dependencies lists
>> org.eclipse.swt. So what's wrong?
>
> Hi!
>
> I'm a tenderfoot, but I think you have the problem, that a class you
> import and use requires another one called
> "org.eclipse.swt.widgets.Shell" which is not in your buildpath. (sounds
> more like a translation than a real answer...).
>
> Add the missing class (or the jar including the file) to your build path
> and all should work fine.
>
> Greetings
> eventhorizon

I don't understand what you mean. It seems that the org.eclipse.swt
package is already on my build path (that's what the Java Build Path
page is saying).
Re: Build path problem [message #227743 is a reply to message #227737] Thu, 16 August 2007 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Srdan,

Is org.eclipse.swt.win32.win32.x86* there too? That's where the actual
classes are...


Srdan Bejakovic wrote:
> eventhorizon wrote:
>> Srdan Bejakovic wrote:
>>> I posted this earlier but got no response so I am reposting. I
>>> created a
>>> plugin, which worked fine. Then, after a restart, the following error
>>> appeared:
>>>
>>> The type org.eclipse.swt.widgets.Shell cannot be resolved. It is
>>> indirectly referenced from required .class files
>>> Eclipse suggests that I configure my build path. On the Java Build Path
>>> properties page, under the Libraries tab, the Plug-in Dependencies
>>> lists
>>> org.eclipse.swt. So what's wrong?
>>
>> Hi!
>>
>> I'm a tenderfoot, but I think you have the problem, that a class you
>> import and use requires another one called
>> "org.eclipse.swt.widgets.Shell" which is not in your buildpath. (sounds
>> more like a translation than a real answer...).
>>
>> Add the missing class (or the jar including the file) to your build path
>> and all should work fine.
>>
>> Greetings
>> eventhorizon
>
> I don't understand what you mean. It seems that the org.eclipse.swt
> package is already on my build path (that's what the Java Build Path
> page is saying).
Re: Build path problem [message #227748 is a reply to message #227743] Thu, 16 August 2007 11:57 Go to previous message
Srdan Bejakovic is currently offline Srdan BejakovicFriend
Messages: 8
Registered: July 2009
Junior Member
Ed Merks wrote:
> Srdan,
>
> Is org.eclipse.swt.win32.win32.x86* there too? That's where the actual
> classes are...
>
>
> Srdan Bejakovic wrote:
>> eventhorizon wrote:
>>> Srdan Bejakovic wrote:
>>>> I posted this earlier but got no response so I am reposting. I
>>>> created a
>>>> plugin, which worked fine. Then, after a restart, the following error
>>>> appeared:
>>>>
>>>> The type org.eclipse.swt.widgets.Shell cannot be resolved. It is
>>>> indirectly referenced from required .class files Eclipse suggests
>>>> that I configure my build path. On the Java Build Path
>>>> properties page, under the Libraries tab, the Plug-in Dependencies
>>>> lists
>>>> org.eclipse.swt. So what's wrong?
>>>
>>> Hi!
>>>
>>> I'm a tenderfoot, but I think you have the problem, that a class you
>>> import and use requires another one called
>>> "org.eclipse.swt.widgets.Shell" which is not in your buildpath. (sounds
>>> more like a translation than a real answer...).
>>>
>>> Add the missing class (or the jar including the file) to your build path
>>> and all should work fine.
>>>
>>> Greetings
>>> eventhorizon
>>
>> I don't understand what you mean. It seems that the org.eclipse.swt
>> package is already on my build path (that's what the Java Build Path
>> page is saying).

Nope, it wasn't there. I added it and the problem is gone. Thanks!
Previous Topic:what is TPTP and how
Next Topic:IPreferenceChangeListener
Goto Forum:
  


Current Time: Fri Mar 29 07:29:08 GMT 2024

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

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

Back to the top