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 ran into errors regarding main class and I don't understand why. lib/*
also contains lib/.
, but is this the crucial difference?