欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码 EclipseJavaSAPSAP云平台SAP Cloud Platform 

程序员文章站 2022-03-05 19:14:19
...

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

 

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

We have no chance to view its source code.

 

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

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类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

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

 

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

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

 

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

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

 

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

(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类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

(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类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform 

 

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

使用JAD集成到Eclipse里去,方便地查看任意Java类的源代码
            
    
    
        EclipseJavaSAPSAP云平台SAP Cloud Platform