使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼

i042416發表於2020-09-07

In our JAVA development if there is no source code attached for a class like below,


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


We have no chance to view its source code.


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


However you can use an open source tool, JAD, to decompile the class file so that you can view its source code.

There is also an available plugin for eclipse which you can download from this  link.

(1) Download the proper Jad Eclipse plugin according to the version of your Eclipse:


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


(2) Download the proper JAD.exe file according to your OS type:


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼 使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


(3) put the JAD plugin to your Eclipse plugin folder:


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


(4) Put the JAD.exe to the bin folder of your JRE installation:


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


(5) Restart your Eclipse, in menu Windows->Preference->Java, you can find there is a new option JadClipse, maintain the path of your JAD.exe to “Path to decompiler”:


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


(6) Now click F3 on the class which you would like to view its source code, the JAD will decompile it for you:


使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

使用JAD整合到Eclipse裡去,方便地檢視任意Java類的原始碼


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2717554/,如需轉載,請註明出處,否則將追究法律責任。

相關文章