我要评分
获取效率
正确性
完整性
易理解

Using the JDK of a Later Version

Principles

Currently, the mainstream release is the official Oracle JDK. Open JDK is an open source release of the official JDK. The core source code and technologies of the two releases are the same. Open JDK is updated and released more frequently, and has a significantly increasing number of users. BiSheng JDK is a release of Open JDK, and has many specific optimizations for Kunpeng chips and EulerOS.

New features will be added to the new JDK version to make programming more convenient and simple. In addition, problems in the old version will be fixed and rectified. Therefore, you are advised to use the new version. For production environment focusing on program running stability, you can select a later version that has been running for a period of time. If the Kunpeng chip is used, JDK 1.8 or a later version is recommended.

Modification Method

You are advised to use the JDK of a later version and reinstall it.

To query the JDK version, run the following command:

1
java -version
1
2
3
openjdkversion "1.8.0_232"
OpenJDKRuntime Environment (build 1.8.0_232-Huawei_JDK_V100R001C00SPC173B001-b09)
OpenJDK64-Bit Server VM (build 25.232-b09, mixed mode)