Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2014 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4b3152a80080ac38eaf4 to your computer and use it in GitHub Desktop.
Save anonymous/4b3152a80080ac38eaf4 to your computer and use it in GitHub Desktop.
Batch command
@ECHO OFF
:: When setting the memory below make sure to include the amount of ram letter. M = MB, G = GB. Don't use 1GB for example, it's 1G ::
:: This is 64-bit memory ::
set memsixtyfour=4G
:: This is 32-bit memory - maximum 1.2G ish::
set memthirtytwo=1G
:: Don't edit past this point ::
if $SYSTEM_os_arch==x86 (
echo OS is 32
set mem=%memthirtytwo%
) else (
echo OS is 64
set mem=%memsixtyfour%
)
java -Xmx%mem% -XX:MaxPermSize=256M -jar forge-1.7.10-10.13.2.1232-universal.jar nogui
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment