Skip to content

Instantly share code, notes, and snippets.

@kirkch
Created August 22, 2012 17:15
Show Gist options
  • Save kirkch/3427668 to your computer and use it in GitHub Desktop.
Save kirkch/3427668 to your computer and use it in GitHub Desktop.
Expanding jar files in a directory on to a Java Classpath
Use this when the Java 5 dir/* syntax does not work. This hit me using Gatling on Ubuntu recently.
CLASSPATH="$(echo $GATLING_HOME/lib/*.jar | tr ' ' ':'):$GATLING_CONF:${JAVA_CLASSPATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment