开发者

eclipse build problem

when I try to build my Eclipse project, I get the following error message:

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

Can anybody help me to solve this problem? The Java-Build-Path contains the Plug-in-Dependencies-Library and org.eclipse.swt... is listed there.

I didn't have the problem last week (though nothing should have changed in the meantime). But it's not the firs开发者_如何学JAVAt time that I get this typ of error...


Finally, I could solve the problem with creating a new workspace and importing my project.


I sometimes encounter this kind of stranges error and the only solutions I found to solve it are the following ones (no specific order and sometimes one is enough sometimes not):

  1. Select the project and clean ONLY this project, then rebuild
  2. Clean all the workspace
  3. Restart the workbench
  4. Disable "automatic build", clean all, the build only your project
  5. Remove the project from the workspace WITHOUT removing it from Hard drive and then import it again

I think this is a PDE issue.

Hope this can help, Manu

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜