Tuesday, March 27, 2012

java classpath wildcard

didnt knew java has wildcard classpaths now. You can do something like lib/* to add to classpath all jars in lib directory.

java -cp ".:/lib/*" com.xxx.SearchIndex