#!/bin/bash
#
# Run demo with correct classpath
# 
# $Author: bablokb $
# $Revision: 1.2 $
#
# License: GPL2
# -----------------------------------------------------------------------------

addjars() {
  for d in $@; do
    jars=`find $d -name "*.jar" -maxdepth 1`
    for f in $jars; do
      cp=$cp:$f
    done
  done
  CPATH=$cp:$CPATH
}

addjars /usr/local/lib

java -cp .:$CPATH "$@"

