On a Unix systems it’s very easy to compile the CLASSPATH by using find:
LIBDIR=`find lib/ -name \*.jar` for DIR in $LIBDIR: do CLASSPATH='$CLASSPATH:$DIR' done java -classpath $CLASSPATH com.example.MyClass
What would be the aquivalent in a Windows batchfile?
The same can be achieved from Windows XP on with: