summaryrefslogtreecommitdiff
blob: e7f56707c6068b442fe6c805814b0defca138ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Art Of Illusion Launch Script
# Author: Dylan Carlson
# May 2003
# $Id$

JAVA_HOME=`/usr/bin/java-config --jdk-home`
if [ -z "${JAVA_HOME}" ] ; then
	JAVA_HOME=`/usr/bin/java-config --jre-home`
fi
CLASSPATH="${CLASSPATH}:`/usr/bin/java-config --classpath=aoi`"

if [ ! -f ${JAVA_HOME}/bin/java ] ; then
	echo " "
	echo "I tried using the following Java Runtime:"
	echo "${JAVA_HOME}/bin/java" 
	echo " "
	echo "Java Runtime missing.  Please run java-config(1) and ensure"
	echo "your environment is configured properly."
	exit 1
else
	echo " "
	echo "Using Java Runtime:"
	echo "${JAVA_HOME}/bin/java" 
	echo " "
	echo "Using CLASSPATH:"
	echo "${CLASSPATH}"
	echo " "
fi

${JAVA_HOME}/bin/java -Xmx128M -jar /usr/share/aoi/lib/ArtOfIllusion.jar $*