train 440 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. PROGRAM="jTessBoxEditor"
  3. PROGDIR=`dirname $0`
  4. if [ -z "$JAVACMD" ] ; then
  5. if [ -n "$JAVA_HOME" ] ; then
  6. if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
  7. JAVACMD="$JAVA_HOME/jre/sh/java"
  8. else
  9. JAVACMD="$JAVA_HOME/bin/java"
  10. fi
  11. else
  12. JAVACMD=`which java 2> /dev/null`
  13. if [ -z "$JAVACMD" ] ; then
  14. JAVACMD=java
  15. fi
  16. fi
  17. fi
  18. $JAVACMD -Xms128m -Xmx1024m -cp "$PROGDIR/$PROGRAM.jar" $PROGRAM $@