Java Manifest.mf classpath issues

前端 未结 2 1414
清酒与你
清酒与你 2021-01-14 19:20

I\'ve been trying to run a jar file - let\'s call it test.jar - that uses the Sybase jconn3.jar on a Unix system.

I have created a MANIFEST.MF file that has the foll

2条回答
  •  星月不相逢
    2021-01-14 19:29

    The entries in the class-path are either relative to the JAR in which they are embedded (which you have working) or are URLs. To make your absolute paths work, you'll need to convert them to URLs, e.g.,

    file:/opt/sybase13/...

    There's no mechanism for using variables.

    Although the JAR specification doesn't say it clearly, absolute file: scheme URLs do work in the class-path attribute.

提交回复
热议问题