dotfiles/symlinks/bin/java-helpers/java-stub.sh

11 lines
224 B
Bash
Raw Normal View History

2021-01-07 08:09:41 +00:00
#!/bin/sh
MYSELF=`which "$0" 2>/dev/null`
[ $? -gt 0 -a -f "$0" ] && MYSELF="./$0"
java=java
if test -n "$JAVA_HOME"; then
java="$JAVA_HOME/bin/java"
fi
java_args=-Xmx1g
exec "$java" $java_args -jar $MYSELF "$@"
exit 1