java 比较文件 .class Beyond Compare 4
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40991265/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Compare files .class Beyond Compare 4
提问by pacio14
I'm using Beyond Compare 4 (4.1.9) in order to compare war files.
我正在使用 Beyond Compare 4 (4.1.9) 来比较War文件。
I need to compare the files .classthat I find in the several packages.
我需要比较我在几个包中找到的文件.class。
- How I can compare them using this product (Beyond Compare 4)?
- Otherwise there is another product which can comparewar file and compile the .class files?
- 我如何使用这个产品比较它们(Beyond Compare 4)?
- 否则还有其他产品可以比较war文件并编译.class文件吗?
回答by Chris Kennedy
Double clicking on a war file in Beyond Compare's folder compare will expand it as a folder because war files are essentially zip files.
双击 Beyond Compare 文件夹比较中的一个 war 文件会将其展开为一个文件夹,因为 war 文件本质上是 zip 文件。
To decompile Java class files to source code in Beyond Compare, install the Java Class to Sourcefile format. With the file format installed, when you double click on a .class file inside a .war archive, it will display the decompiled source code in Beyond Compare's Text Compare.
要将 Java 类文件反编译为 Beyond Compare 中的源代码,请安装Java Class to Source文件格式。安装文件格式后,当您双击 .war 存档中的 .class 文件时,它将在 Beyond Compare 的文本比较中显示反编译的源代码。
Download page for file formats: http://www.scootersoftware.com/download.php?zz=kb_moreformatsv4
文件格式下载页面:http: //www.scootersoftware.com/download.php?zz= kb_moreformatsv4
Note the Java class to source file format is only available for Windows, it isn't available for the Linux or Mac versions of Beyond Compare.
请注意,源文件格式的 Java 类仅适用于 Windows,不适用于 Linux 或 Mac 版本的 Beyond Compare。
回答by ChandraBhan Singh
Download Java Class to Sourcefile format from http://www.scootersoftware.com/download.php?zz=kb_moreformatsv4
In Beyond Compare, pick Tools | Import Settings.
Fill in the downloaded filename, and click Next and proceed to finish.
从http://www.scootersoftware.com/download.php?zz=kb_moreformatsv4下载Java 类到源文件格式
在 Beyond Compare 中,选择工具 | 导入设置。
填写下载的文件名,然后单击“下一步”继续完成。