JDK download and installation and configuration environment, jdk configuration Environment
Download and install JDK
1. Select the "downloads" page to download the jdk of the corresponding version or the latest version (it is best to download 32-bit, backward compatible, 64-bit may have unexpected bugs)
Note: The 32-bit SDK can be used on 32-bit and 64-bit computers. The 64-bit SDK can only be used on 64-bit computers.
2. Recommended installation methods:
Do not include Chinese characters or special characters such as spaces in the installation path.
It is best to install a uniform directory for all development-related software.
3. verify whether the installation is successful:
: Use the doscommand to switch to the bin directory installed by JDK.
Enter javac and java respectively. If some content is displayed normally, the installation is successful.
4. Compile and run:
A. Create the xxx. java file.
B. Open the doscommand, enter the binfile of jdk, and enter javac xxx. java to compile.
C. Enter java xxx for running.
D. After compilation is successful, the xxx. class file is generated.
Configure Environment Variables
Win10:
1. Open "computer" (my computer), right-click and choose "properties"> "Advanced System settings"> "environment variables"
2. find the Path in "system variables", click Select, and click "edit". Add "semicolon and Path" (that is; directory of the bin directory under the jdk installation directory)
Whether the configuration is successful:
Open the DOS console, enter "javac", and press Enter.
Enter "java" and press Enter.
All of them are listed in the content list.
For java-version, you can view the JDK version.
Java development tools:
Notepad (Notepad), Editplus/notepad ++, and Eclipse.