Run java simple bash one liner - jar runner with jar classpath expansion
#!/bin/sh
java -classpath $( echo ./lib/*.jar . | sed 's/ /:/g'):./build/somejar.jar:./build/classes $*
java -classpath $( echo ./lib/*.jar . | sed 's/ /:/g'):./build/somejar.jar:./build/classes $*
Comments