Posted October 22, 20223 yr 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.
October 22, 20223 yr What command are you using to run the server? That suggests you supplied `java` as the entrypoint.
October 22, 20223 yr Author 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.)
October 22, 20223 yr Author 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.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.