Hello everyone, in short I tried for a past week to instal java 11 jdk on my debian 9 dedicated server and… Well I can install java but any programs who use java shows that java not installed. I’m hosting game server and from last update it requires java 11. With java 8 everything working fine I tried tens of different variations how to install java jdk 11 but nothing works for me. No idea why… Maybe someone have some ideas why?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
So, there can be a few reasons behind the experienced issues. Firstly, make sure you’ve covered the proper tutorial for installing Java on Debian. It’s full of unreliable sources. In this case DigitalOcean have a pretty good article on how to install Java https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-debian-9 .
Having said that in the tutorial it’s not mentioned how to exactly install Java11 only up to Java10 so after you follow the initial configuration steps, to install Java11 you should be able to perform the following
echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
sudo apt update
sudo apt install openjdk-11-jdk
Now, if you still are experiencing issues, here comes the second bug I can think of. Since you mentioned you have Java8 installed and everything works fine with it, are you sure that when you install Java11 you are not still using the Java8 binaries? Java11 and Java8 do have different paths and as such the binaries located for them are also in different folders.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.