I'm building a virtual machine with debian 9 to use like VPS.
I'm trying to install openJDK11 but i can't find the package and a good tutorial to install it and run apps compiled with openJDK 11.
Has anyone managed to install openjdk11 on a debian machine?
If so, please explain how you did it
Thanks
I downloaded and extracted it with command "tar xvf openjdk-11.0.2_linux-x64_bin.tar.gz" in folder: /opt/java.
I set the environment variable JAVA_HOME with the location of java folder and i've added it to PATH variable.
Can i set OpenJDK 11 (for linux) as default?
Or i must set JAVA_HOME environment variable to point to jdk-11.0.1, and run all jar programs with command "$JAVA_HOME/bin java -jar filename.jar"?