java 查看 .jar 文件的内容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6356436/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 15:32:30  来源:igfitidea点击:

To view the content of .jar file

java

提问by user394741

I do have a .jar file and i need to view the content of the jar files.

我有一个 .jar 文件,我需要查看 jar 文件的内容。

  1. Is there any decoder available for decoding the jar file.
  2. I have the solaris environment also and i need to know what is the
  1. 是否有任何解码器可用于解码 jar 文件。
  2. 我也有solaris环境,我需要知道什么是

回答by Ryan

Use the jarcommand line, i.e.

使用jar命令行,即

jar tf jarfile.jar

回答by Mick Sear

unzip it. It's just a zip file.

解压它。它只是一个 zip 文件。

回答by ReNa

Just google jd-gui

只是谷歌jd-gui

Hopefully this works for you

希望这对你有用

回答by mh.

The "official" utility is called "jar" and should be installed if a Java environment is installed. It is a command line utility that works similar to the UNIX tool "tar".

“官方”实用程序称为“jar”,如果安装了 Java 环境,则应安装。它是一个命令行实用程序,其工作方式类似于 UNIX 工具“tar”。

But as Mick Sear mentioned, "unzip" will also work.

但正如 Mick Sear 提到的,“解压缩”也可以。

回答by Rajesh

*.jar are archived files. Try extracting it with an Archiver!(similar to WinRAR on windows)

*.jar 是存档文件。尝试用 Archiver 解压它!(类似于 Windows 上的 WinRAR)

回答by ICR

JAR files are packaged as zips, so any tools you use to open zip files should work.

JAR 文件被打包为 zip,因此您用来打开 zip 文件的任何工具都应该可以使用。