Check JAVA_HOME

This commit is contained in:
杨博 2012-08-10 12:14:56 +08:00
parent df31ed1fcb
commit 1f600d049b
1 changed files with 5 additions and 0 deletions

View File

@ -1,7 +1,12 @@
#!/bin/sh
# sbt launcher script for Cygwin and MSYS
if [ -z "$JAVA_HOME" ]; then
JAVA_CMD=java
else
JAVA_CMD=$JAVA_HOME/bin/java
fi
JAVA_OPTS=-Xmx512M
UDIR=`dirname "$0"`