Installing BiSheng JDK 8 on CentOS
When running SPECjvm, you can use the BiSheng JDK 8 runtime environment to achieve better performance.
To install BiSheng JDK 8 on CentOS, perform the following steps:
- Obtain the BiSheng JDK 8 software package and save it to the target directory of the Docker container on the CentOS server, for example, /home.
You can contact Huawei technical support to obtain the BiSheng JDK 8 software package.
- Install dependencies.
yum install -y freetype xorg-x11-font-utils fontconfig fontconfig-devel wget https://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP2/OS/aarch64/Packages/xorg-x11-fonts-others-7.5-25.oe2203sp2.noarch.rpm rpm -ivh xorg-x11-fonts-others-7.5-25.oe2203sp2.noarch.rpm
In the preceding command, given that the CentOS repository does not contain the xorg-x11-fonts-others-7.5-25.oe2203sp2.noarch.rpm package, you need to download the package from openEuler-22.03-LTS-SP2.
- Decompress the BiSheng JDK 8 software package.
tar -xzf bisheng-jdk1.8.0_xxxxx
- Configure the environment variables.
- Open the /etc/profile file.
vim /etc/profile
- Press i to enter the insert mode and add the following content to the end of the file:
export JAVA_HOME=/home/bisheng-jdk1.8.0_xxxxx export JRE_HOME=$JAVA_HOME/jre export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
Replace bisheng-jdk1.8.0_xxxxx in the JAVA_HOME environment variable with the actual BiSheng software package name.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /etc/profile file.
- Make the environment variables take effect.
source /etc/profile
- Check whether the installation is successful.
java -version
If the Java version information is displayed, the installation is successful.
Parent topic: Installing BiSheng JDK 8