Two main variables should be set: JAVA_HOME and PATH: $ echo $JAVA_HOME To ensure that a given application works correctly, it needs to know exactly how to locate the JVM. OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode) Environment variables The version output of the JVM looks similar to this: openjdk version "11.0.12" Note that tar will create a new directory: $ tar xvzf OpenJDK11U-jdk_圆4_linux_hotspot_11.0.12_7.tar.gz Then change into that directory: $ cd java/jdk Save the downloaded file to the jdk directory. I like to create one simply called java so I can download and extract the tarball in a dedicated directory. Set up a directory to hold the Java files. You can find downloads of OpenJDK tarballs at Red Hat Developer,, or the Zulu Community edition from Azul. You can download open source Java software from the internet. The JRE is typically installed in production environments due to increased security and space limitations. It doesn't include the compilers and other development tools. To deploy a pre-built Java application generally only requires the JRE. It contains the binaries necessary for compiling, running, and testing the source code. Software developers usually need the JDK. The Java Virtual Machine (JVM) is provided in two different forms: The Java Development Kit (JDK) or the Java Runtime Environment (JRE). Free online course: Developing cloud-native applications with microservices architectures.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |