Cannot use custom Java version

Cannot use custom Java version

Hello, I am trying to run a paper-1.17 Release 4 server, which requires Java 16.
I’m using the latest MineOS Turnkey and its Java version is 17.

I’ve read

and it said to edit the server.config like so:

[java]
java_binary=/path_to_java_goes_here/bin/java
jarfile=minecraft_server.1.17.jar
java_xmx=4092
java_tweaks=

so I did

[java]
java_binary=/home/mc/java/jdk-16/bin/java

However, this is the message it gave me:
image
/home/mc/java/jdk-16/bin/ is where my java file is, the spelling is correct.

In /home/mc/java/jdk-16/ it is using the openjdk-16_linux-x64_bin.tar.gz file found at Archived OpenJDK GA Releases

My questions:

  1. How do I get it to use Java 16?
    Am I missing something?
    Didn’t do it right?
  2. Is the Java files that I’m using now correct?
    Where do I need to get the correct files?




Thank you for your time :smiley:
(Also sorry if I put this in the wrong category lol)

have you extracted the .tar.gz into /jdk-16/ so the /bin/ folder actually exists

Yes, they have been extracted.
image

Type which java in the console if the path is not usr/bin/java then this could be your issue if the webui java was installed here by you. If the path is the same then run ps aux | grep java and see what java process are running.

Or if you transferred the mc server’s java over as root then that will be your issue. cd to that path and
ls –l java to see its perms

Paste the output.