eclipse有关调试问题的解决The source attachment does not contain the source for the file

原创 2007年10月09日 16:40:00
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.

关于Android Studio导入源码的问题解决

进入源码看不到详细代码 方法体中显示介样内容:throw new RuntimeException("Stub!");上方提示介样的错误:Decompiled .class file, bytecod...
  • u010917495
  • u010917495
  • 2016年04月24日 16:23
  • 8462

github项目导入Android studio 出现的问题及解决

前言刚用AS的时候,真心觉得坑不要太多,尤其是导入项目的时候,所以特此整理一些错误信息,方便以后查询和修改错误...
  • liuwanyouyue
  • liuwanyouyue
  • 2016年08月02日 11:05
  • 10081

openCV2.4.12+vs2008+cmake配置出错及解决方案

openCV2.4.12+vs2008+cmake配置出错及解决方案
  • miss_JU
  • miss_JU
  • 2016年06月10日 20:44
  • 3310

Eclipse 软件 Java 解决:出现的editor does not contain a main type错误框 问题

Eclipse 软件 解决:出现的 editor does not contain a main type 错误框 问题当你运行 Java文件是,如果弹出了下面的 错误框:出现错误的原因: 当前的源代...
  • github_35160620
  • github_35160620
  • 2016年08月09日 02:28
  • 22274

file is universal (3 slices) but does not contain a(n) armv7s slice error for static libraries on iO

http://stackoverflow.com/questions/12402092/file-is-universal-3-slices-but-does-not-contain-an-armv7...
  • shuixin536
  • shuixin536
  • 2012年09月24日 18:16
  • 3394

解决eclipse中查看android工程代码出现android.jar has no source attachment

在网上搜这个问题,好多是需要使用Git下载源代码或者下载专门的zip源代码包,其实不用这么麻烦。在stackoverflow上找到了下面最有效的解决方法 问题描述 Source not found ...
  • marking122
  • marking122
  • 2013年06月16日 21:54
  • 16064

mybatis报错(三)报错Result Maps collection does not contain value for java.lang.Integer解决方法

项目报错信息: [WARN ] 2016-03-25 13:03:23,955 - org.springframework.remoting.support.RemoteInvocationTrace...
  • zengdeqing2012
  • zengdeqing2012
  • 2016年03月25日 13:09
  • 18550

Mapped Statements collection does not contain value for RelateMarketingMapper....解决办法

一、问题描述如下: 在SpringMVC整合Mybatis的时候,老是报这个错误。。。。 2012-7-18 11:29:11 org.apache.catalina.core.StandardW...
  • lufeng20
  • lufeng20
  • 2012年07月19日 09:27
  • 6227

解决mybatis,java.lang.IllegalArgumentException Mapped Statements collection does not contain value for

org.apache.ibatis.exceptions.PersistenceException: Error querying database. Cause: java.lang.Illega...
  • Joseph_Geeker
  • Joseph_Geeker
  • 2017年02月09日 16:04
  • 377

eclipse解决editor does not contain a main type的方法

写在前面的话:我的也出现这个问题,但是解决方法和转发的内容不太一样,原理一样,我是右击src--build path--use as source folder,估计以前是删除了工程中的部分东西,如果...
  • huazhangena
  • huazhangena
  • 2012年03月13日 15:29
  • 81920
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:eclipse有关调试问题的解决The source attachment does not contain the source for the file
举报原因:
原因补充:

(最多只允许输入30个字)