eclipse有关调试问题的解决The source attachment does not contain the source for the file
发布日期:2022-02-13 21:45:56 浏览次数:24 分类:技术文章

本文共 1829 字,大约阅读时间需要 6 分钟。

On Wed, 20 Dec 2006 08:21:16 +0100, Daniel Megert wrote: I followed your instructions... feedback below. > Since you have the Eclipse SDK downloaded let's do it the easy way: > > 1.  start your workspace > 2.  File > Import... > Plug-ins and Fragments > 3.  click 'Next' > 4.  verify that the top most checkbox is checked and that the location > points to your Eclipse installation It did.  No problems so far. >       if not: got to the PDE Target preference page and reset the settings > 5.  select 'Binary project' > 6.  click 'Next' > 7.  on the left side select org.eclipse.swt > 8.  click 'Add' > 9.  click 'Required Plug-ins' > 10. click 'Finish' > 11. now check that these steps worked: >        use Ctrl+Shift+T to open an SWT type (e.g. Display) and verify > that source is shown in the editor This does not work.  If I highlight Display, I get: The source attachment does not contain the source for the file Display.class.  You can change the source attachment by clicking Change Attached Source below. > 12. open your Java project's build path property page Project->Properties-> Java Build Path > 13. make sure there is NO swt.jar under 'Libraries' SWT is there and under it is org.eclipse.swt.gtk.linux.x86.  And under Native library location it has.../workspace/org.eclipse.swt.gtk.linux.x86/ - non modifiable. > 14. on the 'Projects' tab add all the org.eclipse.swt* projects that you > imported under step 10. "Build path contains duplicate entry: 'org.eclipse.swt.gtk.linux.x86' for project test"  So I removed it here. > 15. click 'OK' > > You should now be setup correctly. In the future if you need to switch > to a new SWT version simply install the new version and repeat steps 1 -10. It works now. FWIW, I have never had to manually add anything to do with SWT to my projects before. Thanks for your help.

转载地址:https://blog.csdn.net/glumtree/article/details/1817068 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SWT-DESIGNER想要运行Java应用程序,必须将SWT的原生包导入到项目中,否则该项目在运行程序时会报异常
下一篇:jdk+Tomcat+JSP经典配置实例

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2024年04月30日 03时27分28秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

freeswitch设置账号密码和端口 /conf/autoload_configs/event_socket.conf.xml 2019-04-30
freeswitch添加坐席/usr/local/freeswitch/conf/directory/default 2019-04-30
JavaScript原生开关灯效果 2019-04-30
企业邮箱如何申请注册,邮箱申请如何免费注册? 2019-04-30
微信企业邮箱,手机邮箱格式地址怎么写? 2019-04-30
公司如何申请企业邮箱,公司邮箱怎么申请,公司企业邮箱哪个好? 2019-04-30
电子邮箱账号怎么申请,怎样申请邮箱账号呢 2019-04-30
邮箱怎么发邮件,邮件发信量多少,职场新人怎么发汇报邮件呢? 2019-04-30
maven 多层次pom 新引入包,编译成功,还是没有将包引入到本地 2019-04-30
leetCode2 两数相加 2019-04-30
【工具使用】使用pip与conda安装、更新与卸载Pytorch和torchvision 2019-04-30
【深度学习笔记】batchsize, time step(iteration), epoch 区别与联系 2019-04-30
【解决错误】ModuleNotFoundError No module named matplotlib 2019-04-30
【工具使用】Google免费云环境Colaboratory使用 2019-04-30
【深度学习笔记】卷积层,全连接层,池化层的相关输出参数计算 2019-04-30
【NLP学习笔记】文本分类概述 2019-04-30
【深度学习笔记】文本分类 2019-04-30
【转载】炼丹实验室:深度学习网络调参技巧 2019-04-30
【论文阅读笔记】Graph Convolutional Networks for Text Classification 2019-04-30
【论文阅读笔记】文本分类论文汇总 2019-04-30