The process of building a Java development environment is simple, and we'll learn how to build a Java development environment to run our first Java program with the following tutorials
Tips : Bloggers Use the system is WIN10
First, install download JDK
The JDK is the Java SDK, a software for developing and running Java programs, all known as the Java Development Kit, and the installation download process is as follows
Open the download page for Oracle website, select the latest release, click Download
Select the version that corresponds to your computer system, click Download
After the download is complete, there will be a corresponding installer in the default download folder, open the installer and follow the default installation options.
After waiting for the installation to complete, we can verify that the installation was successful. Press the shortcut key Home+r Open run, enter CMD in the input box and press ENTER to open the Command Line window, enter the java-version command in the Command Line window to verify
Ii. Install and download Eclipse
Eclipse is an integrated development environment (Integrated development Environment,ide) provided for the rapid development of Java programs, which integrates editing, compiling, linking, debugging, and online help into a graphical user interface for improved development efficiency. The installation download process for Eclipse is as follows
Open the download page of the Eclipse website and click Download
Select the appropriate download source to download, in order to speed up the download, here selected the Tsinghua University tuna Mirror Station
After the download is complete, a corresponding installer will be installed in the default download folder to open the installation program for installation
Here you choose IDE Tools for Java development
Choose the installation path here, Bo Master chose to install under the D disk
Here Select the work path, that is, the future creation of the project will be created by default in this directory, the blogger chose to install under the E disk
Well, this completes the Java development environment, and then we'll run our first Java program.
Third, the first Java program
Open Eclipse, create our first Java project
Create our First Class
Then you can write the code, and after writing it, use the shortcut key CTRL+F11 run the code to get the following results
At this point, we have successfully run our first Java project.
Building a Java development environment