【问题标题】:extracting portion of jar to a path将 jar 的一部分提取到路径
【发布时间】:2011-04-22 08:29:36
【问题描述】:

我正在使用以下命令,我的意图是仅从中提取 DYEDistinctAppServer.topology discovery1-full-8.1.0-07-10-2010_1055.jar 位于 data/product/template-topologies/DYEDistinctAppServer.topology 路径。

命令:

jar -xf discovery1-full-8.1.0-07-10-2010_1055.jar -C data/product/template-topologies/DYEDistinctAppServer.topology

它不是提取文件,而是提示我错误地使用了命令,并转储了所有各种选项的帮助。

是否有语法错误,如用法部分所示。 我正在使用 AIX 操作系统。

谢谢。

【问题讨论】:

    标签: java shell jar zip aix


    【解决方案1】:

    选项-C 是设置jar 应该运行的目录,而不是JAR 文件中的路径。试试:

    jar -xf discovery1-full-8.1.0-07-10-2010_1055.jar data/product/template-topologies/DYEDistinctAppServer.topology
    

    【讨论】:

      猜你喜欢
      • 2021-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-02
      • 2010-12-28
      • 1970-01-01
      • 2013-01-13
      • 2020-07-27
      相关资源
      最近更新 更多