diff --git a/scripts/withjava b/scripts/withjava new file mode 100755 index 00000000..d91bd22f --- /dev/null +++ b/scripts/withjava @@ -0,0 +1,17 @@ +#!/bin/sh +__usage=" +USAGE: + $0 + +ARGS: + the jvm to use + the command to run +" + +if [ 3 -gt $# ]; then + echo -e "$__usage" +else + export PATH="/usr/lib/jvm/$1/bin:$PATH" + ${@:2} +fi +