Solved.
Solution? Don't be stupid.
Basically, I had „java -Xms8G -Xmx8G …“ in my „user_jvm_args.txt“ file. Meaning, when combining, the command was like „java java -Xms8G -Xmx8G“. The „java“ was there twice.
I knew it will be something stupid. I'm not surprised.
I'm using the script forge comes with. It's just this:
java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19.2-43.1.47/unix_args.txt --universe /mnt/D/MCServer/worlds/ --world Anbechacha "$@"
(With specification, which world to load.)
I'm unable to run the server, because of
Error: Could not find or load main class java
Caused by: java.lang.ClassNotFoundException: java
This is what it says in the terminal. I'm on Linux (Mint, 21), trying to run the server from terminal.
I have Jva installed, openjdk version "17.0.4" 2022-07-19.
Obviously, there is no log.