将jar提取到指定的目录 [英] Extracting jar to specified directory

查看:146
本文介绍了将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


推荐答案

最好这样做。

导航到文件夹结构require

Navigate to the folder structure you require

使用命令

jar -xvf  'Path_to_ur_Jar_file'

这篇关于将jar提取到指定的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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