Create a shell script as below:
#!/usr/bin/bash
CLASS_PATH=/java/lib/clojure.jar:/java/lib/jline.jar
CMD="java -cp `cygpath -wp $CLASS_PATH`"
SHELL="jline.ConsoleRunner clojure.main"
SCRIPT="clojure.main"
if [ "$1" ]; then
$CMD $SCRIPT $1
else
$CMD $SHELL
fi
1 comment:
Post a Comment