JDK download and installation and configuration environment, jdk configuration Environment

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.