Rate This Document
Findability
Accuracy
Completeness
Readability

Installing JDK

  1. Download the JDK installation package and decompress it to the installation directory.
    1
    2
    wget https://mirror.iscas.ac.cn/kunpeng/archive/compiler/bisheng_jdk/bisheng-jdk-8u342-linux-aarch64.tar.gz
    tar -zxf bisheng-jdk-8u342-linux-aarch64.tar.gz -C /usr/local
    
  2. Configure the JDK environment variables.
    1. Open the profile file.
      1
      vi /etc/profile
      
    2. Press i to enter the insert mode and add the JDK path to the profile file.
      1
      2
      export JAVA_HOME=/usr/local/bisheng-jdk1.8.0_342
      export PATH=$JAVA_HOME/bin:${PATH}
      

      JAVA_HOME: JDK installation directory.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Make the environment variables take effect.
    1
    source /etc/profile
    
  4. Check the JDK version.
    1
    java -version