- 1 Introduction
- 2 preparation
- 3. Uninstall the original openjdk components
- 3.2 viewing the default installation version
- 3.3 uninstall the default installation version
- 4. Install oraclejdk RPM package
- 5 verification
JDK (java development kit) is a software development environment used in Java platform programming. It contains a complete Java runtime environment, the so-called private runtime. The name comes from the fact that it contains more tools than stand-alone jres and other components needed to develop java applications. Common are openjdk and Oracle JDK
Oraclejdk is licensed under the Oracle binary license agreement, while openjdk has GNU General Public License (GNU GPL) version 2.
There are some licensing implications when using the Oracle platform. As Oracle announced, public updates to Oracle Java se 8 released after January 2019 will not be available for commercial, commercial or production purposes without a commercial license. However, openjdk is completely open source and can be used freely.
Therefore, most Linux distribution software sources use openjdk, while most domestic developers use oraclejdk when developing Java projects. Generally, there is no great difference between the two, but in a few cases, exceptions may be encountered when the program is running.
Kirin V10 operating system installs openjdk version 1.8 by default. This article mainly introduces that when the program developed in oraclejdk environment runs on Kirin V10 and encounters an error, you can try to change openjdk to Oracle JDK (an example has been encountered: a Java application deployed through dongfangtong middleware runs abnormally in openjdk environment and can run normally after changing to Oracle JDK.)
Of course, due to commercial licensing and other reasons, this temporary replacement is not recommended for the production environment. Instead, it is finally adapted to the default openjdk by comparing the similarities and differences between the two applications.
Download oraclejdk 1.8
Official download page:
Select the RPM package of aarch64 version to download (you can also select the compressed package format, but you need to configure your own environment variables, etc.)
uname -aView operating system information
- Operating system: kylin Linux Advanced Server release V10 (tercel)
- Kernel information: 4.19.90-17.5 ky10. aarch64
3. Uninstall the original openjdk components
Note that the Kirin V10 operating system has both openjdk and openjdk 11 installed by default, and both versions are uninstalled
3.2 viewing the default installation version
yum list installed |grep jdk java -version
3.3 uninstall the default installation version
yum remove java-1.8.0-openjdk.aarch64 yum remove java-1.8.0-openjdk-headless.aarch64 yum remove java-11-openjdk-1:184.108.40.206-4.ky10.ky10.aarch64 yum remove java-11-openjdk-headless-1:220.127.116.11-4.ky10.ky10.aarch64
4. Install oraclejdk RPM package
rpm -i jdk-8u281-linux-aarch64.rpm
You can see that oraclejdk has been installed successfully (the original openjdk logo disappears)
We hope that more articles about Oracle openaeppr support JDK will continue to search for more articles about Oracle openaeppr in the future!