1

我在英特尔 Mac 上的 Eclipse 中运行 java 1.6。我正在使用 1.6.0 版本,System/Library/Frameworks并在 Eclipse 中将默认编译器设置为此。

如何附上源代码?

首先,我从 oracle 下载了 1.6 的源代码,我想我可以附上它,因为安装的 1.6 没有源代码。

当我点击一个java类获取Source Code Editor时,会出现问题:

  • 首先,第一行说Compiled from File.java (version 1.5 : 49.0, super bit)

  • 最重要的是,当我附加 1.6 源 jar 文件时,会出现错误:

    An error has occurred. See error log for more details.
    Unable to create resource 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 版本是:面向 Web 开发人员的 Eclipse Java EE IDE。版本:Helios Service Release 2 Build 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 个文件夹:

  • 日食,和
  • 日食 2。

所以这看起来像是一个混乱的根源。否则 Eclipse 运行良好。

你能帮忙吗?

4

1 回答 1

0

http://java.decompiler.free.fr/是你的答案,它有一个 eclipse 插件,可以反编译代码

于 2011-04-21T17:10:16.040 回答