Jump to content

Error: Could not find or load main class java Caused by: java.lang.ClassNotFoundException: java


I-13

Recommended Posts

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.

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.