diff options
author | Eric Hameleers <alien@slackware.com> | 2012-03-24 13:26:45 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2012-03-24 13:26:45 +0000 |
commit | 9fe7a872273c0148cf6711fecdec9616f5e131cc (patch) | |
tree | f4824fe3eb2cbfa6ef729d248bbcb69b4be1f84c /minecraft/build/minecraft.sh | |
parent | fb89e6bbdec2aa93943c0197e728daf9a0ac9408 (diff) | |
download | asb-9fe7a872273c0148cf6711fecdec9616f5e131cc.tar.gz asb-9fe7a872273c0148cf6711fecdec9616f5e131cc.tar.xz |
Initial revision
Diffstat (limited to 'minecraft/build/minecraft.sh')
-rw-r--r-- | minecraft/build/minecraft.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/minecraft/build/minecraft.sh b/minecraft/build/minecraft.sh new file mode 100644 index 00000000..4b06c755 --- /dev/null +++ b/minecraft/build/minecraft.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# $Id$ + +# A wrapper script to start MineCraft. +# It should work with the Sun JRE/JDK as well as with the OpenJRE/JDK. + +# If your computer has less than 2 GB of RAM you may have to set +# a lower value here (value is in MB): +MAXMEM=1024 + +# Fix for users of special IM modules +unset XMODIFIERS GTK_IM_MODULE QT_IM_MODULE + +LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/amd64/:$JAVA_HOME/lib/i386/:$JAVA_HOME/jre/lib/amd64/:$JAVA_HOME/jre/lib/i386/" exec java -Xmx${MAXMEM}M -Xms$(($MAXMEM/2))M -cp /usr/share/minecraft/minecraft.jar net.minecraft.LauncherFrame "$@" +~ |