Installing the BiSheng JDK
Tomcat depends on the Java environment. Install OpenJDK or BiSheng JDK based on your actual requirements. The following uses BiSheng JDK 8u422 as an example to describe how to install the BiSheng JDK.
- Download the BiSheng JDK binary package.
If the server cannot access the Internet, perform the following steps to download the binary package of the BiSheng JDK to your local host and upload it to the server.
- Download the BiSheng JDK binary package bisheng-jdk-8u422-linux-aarch64.tar.gz.
- Copy the BiSheng JDK binary package to the /home directory on the server and decompress it.
cd /home tar -zxvf bisheng-jdk-8u422-linux-aarch64.tar.gz
If the server is connected to the Internet, you can run the wget command on the server to download the binary package.
1 2
cd /home wget https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_jdk/bisheng-jdk-8u422-linux-aarch64.tar.gz --no-check-certificate
- Verify the availability of the BiSheng JDK binary file.
cd /home/bisheng-jdk1.8.0_422/bin ./java -version
If the BiSheng JDK version is returned, the BiSheng JDK has been successfully downloaded and decompressed.

- Configure the BiSheng JDK environment variables.
- Open the /etc/profile file.
vi /etc/profile
- Press i to enter the insert mode and add the following content to the file:
export JAVA_HOME=/home/bisheng-jdk1.8.0_422 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export JRE_HOME=$JAVA_HOME/jre
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the configuration take effect.
source /etc/profile
- Open the /etc/profile file.
Parent topic: Installing JDK