Step 1 of getting started with Java to complete JDK installation (window)

Source: Internet
Author: User

To target more humans, I decided to repeat my java startup:

The first step for Java Development is to install the Java environment, that is, install the JDK on a pay-as-you-go basis;

1. Because Java was acquired by Oracle, we download JDK will go to the Oracle official website to download http://www.oracle.com/technetwork/java/archive-139210.html

The JDK to be downloaded should be a Java folder containing JDK and JRE. After correct download, we usually put the entire j file under the c: \ Program Files \ directory;

2. Configure the environment variables:

Computer --> properties --> advanced system settings

--> Select Advanced --> select environment variable -->

Now we can add several variables to the system environment variables:

Click Create. First, create a variable named java_home. The variable value is the JDK installation path.

Then: Write the second environment variable: classpath variable value: C: % java_home % \ Lib \ tools. jar; load the tool class

Finally, edit the PATH environment variable. Generally, the PATH variable already exists in your system environment variable. If it does not exist, create a new one.

Add % java_home % \ bin at the end of the variable;

After the configuration is complete, it is basically successful. Now let's verify it:

Run --> Enter cmd --> OK and enter Java in the displayed command window:

After a lot of attribute information appears, enter javac (Virtual Machine ):

You have successfully printed the table name and configured the table successfully. If you haven't printed the surface, your environment variable configuration is still incorrect. Review the preceding information again.

Next: http://www.cnblogs.com/shenliang123/archive/2012/04/17/2454117.html after completion

If you have any questions, you can improve your communication performance.

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.