#Cant install java on ubuntu server
85 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @kind remnant! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
sudo apt-get update
sudo apt-get install libc6-i386```
copy those one by one and paste
done
tried this command anyway
: Unable to locate package openjdk-16-jre
let me check
or should i try reinstalling the whole os?
no lol
okayyyyyyy
it gives me this error when starting the server
Unsupported Java detected (55.0). This version of Minecraft requires at least Java 16. Check your Java version with the command 'java -version'.
what version is it
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu222.04, mixed mode, sharing)
I need java 16 when tried 17 it told me the same error when starting the minecraft server
and i can install any othe version then 16
i use kubuntu
i gave a command earlier
sudo apt remove openjdk-11-jre
i think
yeah
it works
okay im gonna try to start the server give me a second
it gives me this Unsupported Java detected (61.0). Only up to Java 16 is supported. and when i type java -version it says 17 😢

sudo apt update
still got the error
did you remove the other java versions
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
maybe remove 17
and install 16
it gives me this Unsupported Java detected (61.0). Only up to Java 16 is supported.
since its only till 16
i did that i removed java 17 apt remove java-common (i did this because sudo apt remove java-open-17 or that thing you told me to remove java 11 did not work) and installed it with the 16 command but it installed 17
hmmm
This topic describes the installation procedures of the JDK on the Linux platform, along with the system requirements.
did you follow the docs before
no need
just follow docs
i did (insert crying emoji)
i will send you proper instructions in a minute
is he trying to install java 16?
yeah
here
you might need to change directory though
go down and go to jdk 16
16 GA (build 16+36)
this one
then go to the place you downloaded it
explorer
then right click open terminal there
then do
tar zxvf openjdk-16_linux-x64_bin.tar.gz
now you will get a jdk-16
folder
done
just change directory of java
im just gonna reinstall the server with another os just mark this form as unsolved and leave it open
you will get into other problems but as you wish
this is the solution if you want to try later.