如何解压缩文件jre-9 / lib / modules? [英] How to extract the file jre-9/lib/modules?
问题描述
在 JRE-9 / lib
目录中(至少在Windows上),有一个名为 modules
的新文件其大小约为107 MB。是否有可能提取该文件或列出其中的java模块?
In JRE-9/lib
directory (at least on Windows), there is a new file called modules
whose size is about 107 MB. Is it possible to extract that file or maybe list java modules within it?
我可以看到一个名为 jmod的新工具
可在 jdk-9 / bin / jmod.exe
中找到,但这是用于读取 .jmod
文件位于 jdk-9 / jmods
,它无法读取文件 modules
。
I can see that a new tool called jmod
is available at jdk-9/bin/jmod.exe
, but that is for reading .jmod
files which is located at jdk-9/jmods
and it cannot read the file modules
.
推荐答案
modules
文件是一个容器文件。它是JDK的内部,并且没有记录格式(它可能随时更改)。出于疑难解答的目的,bin目录中的 jimage
工具可用于列出或提取内容。
The modules
file is a container file. It's internal to the JDK and the format is not documented (it may change at any time). For troubleshooting purposes, the jimage
tool in the bin directory can be used to list or extract the contents.
这篇关于如何解压缩文件jre-9 / lib / modules?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!