How to use regular expression in java manifest classpath?

前端 未结 2 1214
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 18:11

I need to make use of additional jars during the execution of the program. I manually add the jars to the relative ./lib folder and then execute the program. How should I de

2条回答
  •  误落风尘
    2020-12-20 18:31

    You can't use regular expressions or other wildcards in the Class-Path attribute of your manifest.

    There is only one supported wildcard in Java, and that only works on if specified on the commandline on a "manual" java invocation (i.e. not using -jar): using directoryname/*.

提交回复
热议问题