Java basics 1 Environment configuration, java basics 1

Source: Internet
Author: User

Java basics 1 Environment configuration, java basics 1

1. Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Install JDK: Click Next to complete. Note: The default installation path is C: \ Program Files \ Java. to customize the path, place the JDK and JRE paths in the same path with the same drive letter. For example, D: \ Java \ jdk1.7.0 _ 17, D: \ Java \ jre7

3. JDK Configuration:

Purpose: To identify Java commands under the DOS command.

Configuration steps:

Right-click my computer, select Properties, select the Advanced tab, and click environment variables. On the displayed page, select system variables ], click Add to create a variable named JAVA_HOME with the value C: \ Program Files \ Java \ jdk1.7.0 _ 17. Then, locate the path variable under the system variable, add the path of the binfile under JDK installation to the variable path, for example, % JAVA_HOME % \ bin. Click OK.

4. Test whether JDK is successfully installed:

You can open the command line interface and enter java or javac to check whether it can be identified. If it is a Windows 7 7 operating system, open it as an administrator.

The successful interface is as follows:

 

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.