Starting server...
Minecraft version: "1.18.2"
Forge version: "40.1.31"
Java version:
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Java args in user_jvm_args.txt: "-Xmx5G"
If you receive the error message "Error: Could not find or load main class @user_jvm_args.txt" you may be using the wrong Java-version for this modded Minecraft server. Contact the modpack-developer or, if you made the server pack yourself, do a quick google-search for the used Minecraft version to find out which Java-version is required in order to run this server.
Error: Could not find or load main class @user_jvm_args.txt
Ive tried reinstalling my java and the server multiple time ive tried removing the unimportant files but nothing. Any help would be much appreciate.