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. Introduced Strings in switch statement, Binary. 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 Java SE 7 (JDK 7) (July 2011): First version after Oracle purchased Sun Microsystem - aslo called OracleJDK. 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 Java offers the rich user interface, performance, versatility. 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |