在jar文件中列出模块 [英] List modules in jar file

查看:83
本文介绍了在jar文件中列出模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经确定可以创建一个模块化的jar文件.但是,如果可能的话,我想再次检查.给定一个jar文件,是否有办法确定编译器将在其中找到哪些模块?

I've created what I'm pretty sure is a modular jar file. But if possible, I'd like to double check. Given a jar file, is there a way to determine what modules the compiler would find within it?

推荐答案

替代方法是使用jar --describe-module(简称-d),例如:

The alternative is to use the jar --describe-module (-d for short), e.g.:

jar --file=myjar.jar --describe-module

这篇关于在jar文件中列出模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆