Cant get pass run.bat
liamop10 opened this issue ยท 2 comments
run.bat cmd
C:\Users\user\Desktop>REM Forge requires a configured set of both JVM and program arguments.
C:\Users\user\Desktop>REM Add custom JVM arguments to the user_jvm_args.txt
C:\Users\user\Desktop>REM Add custom program arguments {such as nogui} to this file in the next line before the or
C:\Users\user\Desktop>REM pass them to this script directly
C:\Users\user\Desktop>java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.18.2-40.0.4/win_args.txt
Error: Could not find or load main class @user_jvm_args.txt
C:\Users\user\Desktop>pause
Press any key to continue . . .
user_jvm_args.txt
# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB.
# Uncomment the next line to set it.
-Xmx4G -Xms4g -nogui
I have java 17 inatalled.
Change the args to have their own line like this
-Xms4G
-Xmx10G
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=