Eclipse 不显示 java 源代码
我在我的 Intel Mac 上的 Eclipse 中运行 java 1.6。我在 System/Library/Frameworks 下使用 1.6.0 版本,并在 Eclipse 中将默认编译器设置为此。
如何附上源代码?
首先,我从 oracle 下载了 1.6 源代码,我想我可以附上它,因为安装的 1.6 没有源代码。
当我单击 java 类以获取源代码编辑器时,出现问题:
首先,顶行显示
Compiled from File.java (version 1.5 : 49.0, super bit)
最重要的是,当我附加 1.6 源 jar 文件时,它会得到一个错误:
发生错误。有关更多详细信息,请参阅错误日志。 无法创建资源 org.eclipse.ui.internal.misc.ExternalProgramImageDescriptor@50417ba8
这也出现在错误日志中:
java.lang.ClassNotFoundException: org.eclipse.ui.internal.views.log.LogView
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
Eclipse 版本是:Eclipse Java EE IDE for Web Developers。 版本:Helios 服务版本 2 构建 ID:20110218-0911
当我单击安装详细信息时,我得到:
An internal error occurred during: "Fetching children of _SELF_".
Registry Directory not available: /Users/rfrail/Downloads/eclipse 2/p2/org.eclipse.equinox.p2.engine/profileRegistry.
我正在从下载目录运行 Eclipse(过去运行良好);但是,Eclipse 有 2 个文件夹:
- eclipse 和
- eclipse 2。
所以这看起来像是一个混乱的根源。否则 Eclipse 运行良好。
你能帮忙吗?
I'm running java 1.6 in Eclipse on my Intel Mac. I'm using the 1.6.0 version under System/Library/Frameworks
and set the default compiler to this in Eclipse.
How do I attach the source code?
First, I downloaded the 1.6 source from oracle, thinking I could attach that 'cause the installed 1.6 didn't have source.
When I click a java class to get the Source Code Editor, there are problems:
first, the top line says
Compiled from File.java (version 1.5 : 49.0, super bit)
most important, when I attach the 1.6 source jar file, it gets an error:
An error has occurred. See error log for more details. Unable to create resource org.eclipse.ui.internal.misc.ExternalProgramImageDescriptor@50417ba8
This also appears in the error log:
java.lang.ClassNotFoundException: org.eclipse.ui.internal.views.log.LogView
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
The Eclipse version is: Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2
Build id: 20110218-0911
When I click for installation details, I get:
An internal error occurred during: "Fetching children of _SELF_".
Registry Directory not available: /Users/rfrail/Downloads/eclipse 2/p2/org.eclipse.equinox.p2.engine/profileRegistry.
I'm running Eclipse from my Download directory (it's worked fine in the past); however, there are 2 folders for Eclipse:
- eclipse, and
- eclipse 2.
So that looks like a source of confusion right there. Eclipse operates fine otherwise.
Can you help, please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://java.decompiler.free.fr/ 是你的答案
它有一个 eclipse 插件,可以就地反编译代码
http://java.decompiler.free.fr/ is your answer
it has an eclipse plugin which decompiles code in place