First, understand the JDK
Different Java software and class libraries have different requirements for JDK, and before we know how to install Java, let's get a quick look at the differences between JRE, OPENJDK, and Oracle JDK.
JRE (Java Runtime Environment), which is the environment you need to run a Java-language-based application normally. If you are not a program clerk, these are enough for your needs.
The JDK represents the Java SDK, and if you want to do something about Java development (read programs), that's exactly what you need.
OPENJDK is an open source implementation of the Java SDK, the Oracle JDK is the official Oracle version of the Java Development Kit. Although OPENJDK is sufficient for most cases, many programs, such as Android Studio, recommend using Oracle JDK to avoid ui/performance issues.
Ii. Installation of JDK
1. View the currently installed Java version
2. Download the JDK installation package based on the current operating system version selection
3. Place the downloaded installation package in a specific directory
4. Unzip the installation package
5. Add Environment variables
6. Apply Environment variables
7. View JDK Installation Status
Third, install Eclipse
1. Download the appropriate version of Eclipse
2. Unzip the file to a specific location
3. Open Eclipse
Iv. Installing the ant build tool
1. Download the ant installation package
2. Unzip to a specific directory
3. Setting Environment variables
4. Download dependencies related to ant tasks
5. View Ant installation Status
V. Installation of Ivy dependent management tools
1. Download the installation package
2. Unzip to a specific directory
3. Place Ivy's jar package in Ant's lib directory
4. Run the automatic installation script
Create a Java development environment under Ubuntu