Shared Knowlege, Keep It Handy
Friday, September 23, 2011
A class path with all jar files in a folder
Typing in all the jar files to form a class path is not a fun job. This quick trick may alleviate some of the pain.
export CLASSPATH=`echo $PWD/*.jar | sed 's/ /:/g'`
Customize the "echo" part to get all the files needed.
Such as
export CLASSPATH=`echo $PWD/*.jar . $HOME/lib | sed 's/ /:/g'`
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment