{"data":{"external_id":1442,"slug":"install-java-on-vserver-linux","title":"Install Java on vServer\/Linux","content":"In this article we will show you how to install different Java versions (1.8, 16, 17, \u2026) on your virtual server quickly and easily.\nJava Logo\nWe provide a script that installs different open source Java versions on your server. You just need to log in as root on the server and start running the automatic installation.\nIn this article we will show you how to install different Java versions (1.8, 16, 17, \u2026) on your virtual server quickly and easily.\nWe provide a script that installs different open source Java versions on your server. You just need to log in as root on the server and start running the automatic installation.\nWe install different versions for you in the \/usr\/lib folder.\nSupported versions\nWe install different versions for you in the \/usr\/lib folder.\nSupported versions\nCurrently the following versions are supported:\njdk-13.0.1_linux-x64 -> java version \"13.0.1\" 2019-10-15\n-> \/usr\/lib\/jdk-13.0.1\/bin\/java\njre-8u241-linux-x64 -> java version \"1.8.0_241\"\n-> \/usr\/lib\/jre1.8.0_241\/bin\/java\nopenjdk-16.0.1_linux-x64 -&gt; openjdk version \"16.0.1\" 2021-04-20\n-&gt; \/usr\/lib\/jdk-16.0.1\/bin\/java\nopenjdk-17.0.1_linux-x64 -> openjdk version \"17.0.1\" 2021-10-19\n-> \/usr\/lib\/jdk-17.0.1\/bin\/java\nInstallation\nTo install these versions on your server, please run the following command:\nbash &lt;(wget -qO - https:\/\/pph.sh\/docs\/java.sh)\nAlternatively, you can use the app installer to install Java.\nCloud Manager: Install Java packages\nChange default version\nTo set the default version (java in the console), run the following command after installation:\nselect-default-java\nHere you select which version to use as the default Java. We create a link from \/bin\/java to the selected version.\nView available versions\nTo view all versions installed by the script, run the following command after running the Java installer:\nshow-java-versions\nExample of installation","schema":null,"facts":[],"links":[]}}