2011-04-21 112 views
1

我在英特爾Mac上的Eclipse中運行java 1.6。我使用的是System/Library/Frameworks下的1.6.0版本,並在Eclipse中將默認編譯器設置爲此。Eclipse不顯示java源代碼

如何附加源代碼?

首先,我從oracle下載了1.6源代碼,認爲我可以附加說明,因爲安裝的1.6沒有源代碼。

當我點擊一個Java類來獲得源代碼編輯器,有問題:

  • 首先,最上面一行說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 [email protected]7ba8 
    

這也出現在日e錯誤日誌:

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。 版本:赫利俄斯服務版本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(它的工作罰款在過去);但是,也有2個文件夾的Eclipse:

  • Eclipse和
  • 日食2.

所以看起來像混亂的根源就在這裏。 Eclipse運行良好,否則。

你能幫忙嗎?

回答

0

http://java.decompiler.free.fr/是你的答案 它有一個Eclipse插件,反編譯到位

+0

感謝名單代碼。我安裝在eclipse中,但是當我嘗試將「* .class」與反編譯器關聯時,我沒有看到 「內部編輯器」列表中的選項(與http://osdir.com/中的相同毫升/的WebObjects-dev的/ 2010-05/msg00345.html)。所以我下載了jdk源代碼並嘗試附加它是類文件編輯器,但沒有得到任何迴應。我在eclipse插件目錄中看到2個JD-Eclipse jar,在特性目錄中看到1個。 JD-Eclipse也出現在可用軟件站點中,我重新加載(然後重新啓動eclipse)。你能幫忙嗎? Thanx – Rob 2011-04-29 17:00:00

+0

對不起,延遲。 我在插件文件夾中有2個罐子 「D:\ opt \ eclipse \ plugins \ jd.ide.eclipse_0.1.3.jar」 「D:\ opt \ eclipse \ plugins \ jd.ide.eclipse.win32.x86_0。 1.3.jar「 但功能文件夾中沒有jar – 2011-05-05 17:51:07