If the lib / directory contains only .jar files, what's the difference between
java -cp "lib/*" ...
and
java -cp "lib/*.jar" ...
If I use the latter, I have encountered errors regarding the main class, and I do not understand why. lib/*also contains lib/., but is this a crucial difference?
source
share