Extracting jar to specified directory(提取jar到指定目录)
问题描述
我想使用 jar 命令行实用程序将我的 jar 之一提取到指定目录.
I wanted to extract one of my jars to specified directory using jar command line utility.
如果我理解这个正确的 -C 选项应该可以解决问题,但是当我尝试时
If I understand this right -C option should to the trick but when I try
jar xvf myJar.jar -C ./directoryToExtractTo
我正在从我的 jar 实用程序中获取使用信息,所以我做错了.
I am getting usage information from my jar utility, so I am doing something wrong.
我想用 jar 实现的事情还是我需要手动移动我的 jar 并在那里调用
Is the thing I want achievable with jar or do I need to manually move my jar and there invoke
jar xvf myJar.jar
推荐答案
最好这样做.
导航到您需要的文件夹结构
Navigate to the folder structure you require
使用命令
jar -xvf 'Path_to_ur_Jar_file'
这篇关于提取jar到指定目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:提取jar到指定目录
基础教程推荐
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- Struts2 URL 无法访问 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
