Build a development environment before you can use any computer language to develop it.
First, define what is the JDK, JRE.
Second, download the JDK
Third, install the JDK
IV. Configuring environment variables
V. Verification of success
First, what is the JRE, JDK.
JRE (Java Runtime Environment,java Runtime Environment): includes the core class libraries required by the Java Virtual Machine (JVM) and Java programs, and if you want to run a well-developed Java program, install the JRE.
JDK (Java Development Kit,java SDK): JDK is available to Java developers with Java development tools and JRE included. So if you have a JDK installed, you don't need to install the JRE. Development tools: Compilation Tools (Javac.exe), packaging Tools (Jar.exe)
In short: Java programs developed with the JDK are delivered to the JRE.
Second, download the JDK
Go to www.oracle.com Download the JDK (remember to download the JDK, not the JRE if you want to develop it.) Because the download of the official website is in English, if the English is not good, you can find a tutorial online.
Third, install the JDK
Fool installation (next step), but take note of two details:
1, remember to change the installation path, the default is C drive. It is best to install to other disks, even USB drives. (As for why small partners you should know)
2, after installing the JDK, will pop up a dialog box to install the JRE, click Cancel. (The reason has been mentioned earlier)
IV. Configuring environment variables
It's easy to find a tutorial on the Internet (I'll make it up sometime)
V. Verification of success
Open the command line to execute Java, Javac, and if successful execution proves that the environment variable is configured successfully.
Java language development Environment building