![]() This section will instruct you on how to set the JAVA_HOME and PATH environment variables to help ensure that your Java applications will run without issue. Production-ready binaries under the GPL are available from Oracle binaries from other vendors will follow shortly. JDK 17 reached General Availability on 14 September 2021. If you have chosen to install the full OpenJDK development kit, check the version of the compiler as well: javac -versionĪs of the time of this publication, this command should return: javac 11.0.7 JDK 17 is the open-source reference implementation of version 17 of the Java SE Platform, as specified by by JSR 390 in the Java Community Process. OpenJDK 64-Bit Server VM (build 11.0.7 10-post-Ubuntu-3ubuntu1, mixed mode, sharing) OpenJDK Runtime Environment (build 11.0.7 10-post-Ubuntu-3ubuntu1) This is generally slower than running applications that have already been compiled into Java bytecode, and may not be suitable for frequent application execution.Ĭheck the version of the JRE to verify that it has been properly installed: java -versionĪs of the time of this publication, this command should return: openjdk version "11.0.7" While you can run Java applications directly with the JRE, your applications will be compiled every time they are executed. Install the OpenJDK 11 development kit, which includes OpenJRE 11: sudo apt-get install openjdk-11-jdkĪlternatively, if you simply want to run Java applications that you have already downloaded, you can choose to only install OpenJRE 11: sudo apt-get install openjdk-11-jre This guide will use sudo commands wherever possible, which should be run by a limited, non-root user on your Linode.Įnsure your system is up-to-date: sudo apt-get update
0 Comments
Leave a Reply. |