Under windowsWindows this works:
java -cp "Test.jar;lib/*" my.package.MainClass and this does not work:
java -cp "Test.jar;lib/*.jar" my.package.MainClass noticeNotice the *.jar*.jar, so the * wildcard should be used alone.
On Linux, the following works:
java -cp "Test.jar:lib/*" my.package.MainClass The separators are colonscolons instead of semicolonssemicolons.