JARS=$(echo ${LIB_DIR}/* | tr ' ' ':')
java -classpath $JARS org.HelloWorld
Or
in Linux (Java 1.6 and above)
java -cp ".:../lib/*" org.HelloWorld
Maven shaded plugin
Just a collection of some random cool stuff. PS. Almost 99% of the contents here are not mine and I don't take credit for them, I reference and copy part of the interesting sections.
No comments:
Post a Comment