Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use regular expression in java manifest classpath?

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?

like image 787
Suraj Avatar asked Jan 21 '11 08:01

Suraj


1 Answers

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/*.

like image 107
Joachim Sauer Avatar answered Oct 13 '22 09:10

Joachim Sauer