Heres a quick tip to install it in a container. OpenJDK Runtime Environment (build 1.8. The default Debian sources doesnt include the latest OpenJDK but you can get it from jessie-backports. You get something like this: openjdk version "1.8.0_171" Red Hat is providing bug fixes and security patches for OpenJDK 8 and OpenJDK 11, taking over from Oracle. Oracle is no longer maintaining OpenJDK 8 and OpenJDK 11. OpenJDK 8 is available in Debian 8 Operating system as a default JDK. Check with java -version and javac -version that version 8 is the default JDK. The default Java JDK package is openjdk-8-jdk in Debian stretch and openjdk-11-jdk in buster. Today Ill share how to install Java on Debian 8 Server.Repeat the previous operation with default Javac:.Enter â2â to select the java-8-openjdk-amd64. Pay attention to the asterisk before the numbers on the left and if the correct one is not set choose the correct one by typing the number of it and pressing enter. Press enter to keep the current choice, or type selection number: * 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto modeÄ¡ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual modeÄ¢ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1069 manual mode You get something like this: There are 2 choices for the alternative java (providing /usr/bin/java). You get something like this (in a 32-bit environment -i386 postfix instead of -amd64): java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64 Check which JDK-Versions are available on your system perform:.Sudo apt-get install -t jessie-backports openjdk-8-jdk So you have to rely on Debian Backports repository and add the following lines to the end of your /etc/apt/sources.list file:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |