Linux installation JDK15

1. Download 64-bit JKD 15.0.1.tar.gz

Address: https://www.racle.com/java/technologies/javase-jdk15-downloads.html

2. Upload JDK to Linux Specify the directory and extract

TAR -ZXVF JDK-15.0.1_linux-x64_bin.tar.gz

3. Set the system environment variable: Modify / etc / environment, add the following configuration:

Export java_home = / usr / java / jdk-15.0.1

Export jre_home = $ {java_home} / jre

Export classpath =: $ {java_home} / lib: $ {jre_home} / lib: $ classpath

Export java_path = $ {java_home} / bin: $ {jre_home} / bin

Export Path = $ PATH: $ {java_path}

4. Set the user environment variable: Modify / etc / profile, add the following configuration:

Export java_home = / usr / java / jdk-15.0.1

Export jre_home = $ {java_home} / jre

Export classpath =: $ {java_home} / lib: $ {jre_home} / lib: $ classpath

Export java_path = $ {java_home} / bin: $ {jre_home} / bin

Export Path = $ PATH: $ {java_path}

5. Run the source profile to make the modified file take effect;

6. Execute java -version

Related Posts