Installing JDK
- 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
- Configure the JDK environment variables.
- Open the profile file.
1vi /etc/profile - 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.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the profile file.
- Make the environment variables take effect.
1source /etc/profile
- Check the JDK version.
1java -version
Parent topic: Configuring the Compilation Environment