无法在Eclipse查看class源文件一个的解决方法
来源:互联网 发布:给大一新生的建议知乎 编辑:程序博客网 时间:2024/05/18 00:08
问题描述:使用Eclipse进行插件开发一段时间后,突然某天无法查看GEF class的源文件。本人未找到本问题的根因,知道的朋友,请指点
参考下面方法解决
For eclipse users who are debugging the following message might be familiar:
The JAR of this class file belongs to container ‘Plug-in Dependencies’ which does not allow modifications to source attachments on its entries.
This always happens when Eclipse cannot find the source code for a plugin bundle which is part of your target platform but the target platform does not contain a accordant source bundle. This for example happend to me today with the embedded Jetty (org.mortbay.jetty_5.1.14.v200806031611.jar) inside the Eclipse Equinox OSGI platform which makes up my target platform.
When debugged and wanted to go into any class inside a jetty package I always got the message that it is a class from Plugin-Dependencies and the source attachment cannot be modified.
I solved it like this:
- Switch to the Plugins View in Eclipse ( Window / Show View / Plugins)
- locate the bundle org.mortbay.jetty
- right click on that bundle and select “Import as” -> “Binary Project with linked content”
Now that Bundle shows up in your Package Explorer as a new Eclipse project, in my caseorg.mortbay.jetty.
Now right click on that new project in the package explorer and goto ‘Properties / Java Build Path / Libraries’. You see the the jetty jar file there and if you expand this entry you can edit the ‘Source Attachment’ as usual. I pointed it to the downloaded Jetty Source code located in a completely different folder than my target platform which I am using for my project.
转载地址:http://blog.keksrolle.de/2011/01/09/how-to-add-source-attachments-to-jar-files-from-eclipse-target-platform-plug-in-dependencies.html
- 无法在Eclipse查看class源文件一个的解决方法
- IE无法查看源文件解决方法
- 在Eclipse中查看SharedPreferences源文件
- IE8查看源文件不能编辑的解决方法
- lombok在Eclipse无法编译的解决方法
- Eclipse无法查看源码(Source not found)的解决方法
- 在eclipse中将class文件与源文件进行关联
- 在eclipse中将class文件与源文件进行关联
- Eclipse中无法查看Java源码,解决方法
- Eclipse无法查看jdk源码解决方法
- eclipse 查看class的源代码
- Eclipse安装反编译工具Eclipse Class Decompiler:实现不下载源码,查看源文件
- 在eclipse中查看class源码
- 在eclipse中查看.class文件
- 在eclipse中查看class源码
- IE无法查看源文件解决方案
- IE无法查看源文件解决方案
- Android中F3查看源文件没效果的解决方法
- android 用Luncher启动应用的方式
- LHS重要学习资料
- 新浪微博python API的使用
- 转《Linux调优工具oprofile的演示分析》
- 根文件系统制作
- 无法在Eclipse查看class源文件一个的解决方法
- MyEclipse 10安装svn插件
- 关于CONFIG_LOCALVERSION_AUTO设置去掉内核版本号SVN后缀
- CSS3 结构性伪类选择器
- ctags和Tlist
- JQuery使用Ajax同步提交数据
- 让百姓看得起病仍是医疗改革的首要问题
- Android的恢复模式
- 内核启动第一个程序