#!/bin/sh
#
# A simple java wrapper script

. '/usr/share/java-common/java-functions'

# Try to find a JDK/JRE location if JAVA_HOME is not set
FindJVM

if test -z "$JAVA_BIN"; then
    echo "$0: cannot find the Java VM executable" >&2
    exit 1
fi

exec "$JAVA_BIN" "$@"
