-
-
Save anonymous/4b3152a80080ac38eaf4 to your computer and use it in GitHub Desktop.
Batch command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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