Build a java Development Environment on your computer and a java Development Environment

Source: Internet
Author: User

Build a java Development Environment on your computer and a java Development Environment

1. download and install the corresponding jdk.
Download the jdk corresponding to your computer from the official oracle website, and open the ghost link:


Figure 1

Because my system is 64-bit, select x64 download. (It is best to use your computer system here, for a 32-bit system, you need to download the one ending with x86 ). Important: accept the agreement before downloading. After downloading


Figure 2


Decompress the package

 

Figure 3


Double-click the red. EXE file in Figure 3. During the installation process, click Next. I don't mind changing the installation directory (many people may think that my drive C is about to blow up. Don't install it on the drive C? Do not think so. It is best to install it on the C disk, and it will be more than 200 MB, which will not occupy much of your memory ). After the installation is complete, a java folder will appear in the C Drive Program Files folder on the computer.

Figure 4


It is the jdk you installed. If your computer system is 32-bit, the java folder will be in this directory.

Figure 5

 

2. Configure java environment variables.
Go to the jdk folder in the java folder.

Figure 6



Copy the above disk path. Find the computer icon on the computer desk (or enter sysdm. cpl In the cmd window of the computer to set the environment variable ). Right-click "properties" to enter

Figure 7



Click "Advanced System settings" to enter

Figure 8



Click "environment variable" to enter

Figure 9


Under "system variables", click "new" to enter

Figure 10

Add the environment variable JAVA_HOME. The variable value is the jdk installation directory (C: \ Program Files \ Java \ jdk1.8.0 _ 111) Copied earlier. Click "OK ". Similarly, an environment variable for CLASSPATH is added. For the variable value of CLASSPATH, see Figure 11.


Figure 11


Find the "path" variable in the system environment variable.

Figure 12

 

Click "edit", create two environment variables shown in Step 13, and click "OK ". So far, java jdk installation and environment variable configuration have been completed. Finally, check whether the environment variable is successfully configured.

Figure 13


3. test environment variables.
Open the cmd window and enter java

Figure 14



Enter javac

Figure 15


Congratulations! Java environment variable configuration is successful. You can proceed to the next step. If you have any questions, add qq (1677585879) to ask.

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.