Hello, I tried to make a forge server on 1.19.2. I need 2 versions of java for my own use, but the server is starting with the incorrect one. I guess it has to be the 17.0.5 version, but it starts with the Java 8.
The new forge servers are written in a different way and I don't know how to insert the path of the different java
@echo on
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 @libraries/net/minecraftforge/forge/1.19.2-43.2.0/win_args.txt %*
pause
This is what the run.bat file looks like
and after it starts
C:\FORGESERVER 1.19.2>REM Forge requires a configured set of both JVM and program arguments.
C:\FORGESERVER 1.19.2>REM Add custom JVM arguments to the user_jvm_args.txt
C:\FORGESERVER 1.19.2>REM Add custom program arguments {such as nogui} to this file in the next line before the or
C:\FORGESERVER 1.19.2>REM pass them to this script directly
C:\FORGESERVER 1.19.2>java @libraries/net/minecraftforge/forge/1.19.2-43.2.0/win_args.txt
Error: Could not find or load main class @libraries.net.minecraftforge.forge.1.19.2-43.2.0.win_args.txt
C:\FORGESERVER 1.19.2>pause
Press any key to continue . . .