Tuesday, August 11, 2009

colon delimited filenames

Java, today, does not load the jar files in a classpath directory due to security reasons. So, every jar file needs to be explicitly specified in the classpath.

I use the following to come up list of all the jars in a directory, colon separated, to use for my CLASSPATH on linux/bash.


$ ls -1d `pwd`/* | grep jar | tr '\n' ':'

No comments:

Post a Comment