run.bat
Код: Выделить всё
@echo off
REM Forge requires a configured set of both JVM and program arguments.
REM Add custom JVM arguments to the user_jvm_args.txt
REM Add custom program arguments {such as nogui} to this file in the next line before the %* or
REM pass them to this script directly
java -Xmx4G @libraries\net\neoforged\neoforge\21.1.37\win_args.txt %*
pause
java -Xmx4G @libraries\net\neoforged\neoforge\21.1.37\win_args.txt %*
и выдает мне эту ошибку
Код: Выделить всё
Error: Could not find or load main class
@libraries\net\neoforged\neoforge\21.1.37\win_args.txt
так почему же командный файл возникли проблемы с @-файлом?
работает с Java 21
Подробнее здесь: https://stackoverflow.com/questions/790 ... batch-file
Мобильная версия