Hello, I've tried to set up a (modded) Minecraft server. I've done this in the past as well (last one I did was for 1.18 and it worked), and I usually do it by following the steps from "The Breakdown" Youtube channel (in this case this video https://www.youtube.com/watch?v=MO06XrLZxGI). Altough I always get an error at some point, it usually is towards the end when others have to join the server and I did always manage to fix the issue somehow. This time however, I got an unexpected error to which I couldn't find a solution myself or online.
After downloading "installing forge-1.19.3-44.1.23-installer.jar" from the Forge website, I've installed the client to the folder with the path that ends with "\AppData\Roaming\.minecraft". Then, I've installed the server to an empty folder on Desktop. After opening the run.bat file, I get the following message: "The system cannot find the file "C:\ProgramData\Oracle\Java\javapath\java.exe"
I have Java folders both on my Program Files (jdk-17) and Program Files(x86) (jre1.8.0_361) but none on the ProgramData. When I try to install jdk-17 it doesn't give me the option to install there, as it is a hidden folder.
I've tried the following methods already:
updated Java (before starting the whole process & whilst trying to troubleshoot)
uninstalled jdk and reinstalled it (I've kept jre because I vaguely remember that it was painful to download it)
checked if the client installation works/minecraft forge 19.3 runs
As mentioned usually I somehow manage to make the server work, but this time I'm at a total loss. I would be very grateful for some insight and help in finding the solution to this problem. Thank you very much in advance!
Edit: this is what the run.at file looks like:
@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 @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19.3-44.1.23/win_args.txt %*
pause
TLDR; I try to execute the run.bat file for the first time for a Minecraft server, and get the "The system cannot find the file "C:\ProgramData\Oracle\Java\javapath\java.exe" error.