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 define the classpath in the manifest file?
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/*
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With