#!/bin/sh

if ! java -version >& /dev/null
then
echo "Could not find Java."
echo "You must have Java installed and in your path."
exit
fi

relativePathToGame=`dirname $0`
cd $relativePathToGame

export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/:$PATH
export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.7/Home/bin/:$PATH
java -Xmx896m -cp bin/patch.jar:bin/triplea.jar -Dapple.laf.useScreenMenuBar=true -Xdock:name="TripleA" -Xdock:icon="./icons/triplea_icon.png" games.strategy.engine.framework.GameRunner
