tried that, still getting the same error. bat file currently reads:
@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
"C:\Program Files\Java\jdk-17\bin\java.exe" @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.3.0/win_args.txt
pause
when i used javaw.exe instead, nothing showed up on the console window at all