Rate This Document
Findability
Accuracy
Completeness
Readability

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:

  1. 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.

  2. 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.

  3. Decompress the BiSheng JDK 8 software package.
    tar -xzf bisheng-jdk1.8.0_xxxxx
  4. Configure the environment variables.
    1. Open the /etc/profile file.
      vim /etc/profile
    2. 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.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Make the environment variables take effect.
    source /etc/profile
  6. Check whether the installation is successful.
    java -version

    If the Java version information is displayed, the installation is successful.