Win10 Jdk1.7+maven (free installation 3.2.5)

Source: Internet
Author: User

Step one, JDK 1.7 installation (save download)

After downloading the double-click, will pop up two boxes, all click Next on the line, the installation path is recommended by default , memory footprint, no need to make any changes, but also convenient for later operation.

There will be a Java folder under the "Program Files" folder on the C drive after installation is complete.

Step two, JDK environment variable configuration

1. Open the Environment Variable configuration page:

Open My Computer, right-click in the Blanks Select "Properties"-click "Advanced System Settings"-"Environment variable";

2. Environment variable Configuration

Configuring the environment variable-1 (which is actually the profile directory)

Configure "Java_home","java_home" does not exist in the system, so to click New, the variable name input "Java_home" (letter is not case-sensitive);

Then the value of the variable is not entered first, click Browse Directory to find the "program Files" folder in the "Java" folder, click "Java" and then point to OK. As shown, the value of the variable then becomes "C:\Program Files\java", in fact, this value can also be entered directly.

Configuring Environment Variables-2

Configure "path", "path" exists in the system, so there is no need to create a new, just find "path" and then click "Edit" to enter the page;

Click "New", no need to enter anything, directly click "Browse", find "Java" directory in the JDK directory "bin", click "Bin" and then point to determine, as shown in the 2nd picture. Then "path" has a line value of "C:\Program files\java\jdk1.7.0_21\bin", so it is configured. Finally click OK to close all pages.

no need to configure CLASSPATH, This is the JDK version of ten years ago, do not control the "Java" Directory of the JRE directory.

Verify that the environment variable is configured successfully:

1. Right click the Start button click Run, enter "cmd" and click OK.

2, enter "Javac" and then return to display similar configuration information is normal , otherwise display: ' Javac ' is not an internal or external command, is not a running program or batch file.

3, enter "Java" and then return to display similar configuration information is normal , otherwise display: ' Java ' is not an internal or external command, is not a running program or batch file.

Note: 2, 3 steps in order.

Simple use of JDK

    1. Create a new TXT file named "HelloWorld" in the D-packing directory, which writes:

      public class HelloWorld

      {

      public static void Main (string[] args) {

      System.out.println ("helloworld!");

      }

      };

      2, after writing to save, the file suffix name "TXT" to "Java", is the suffix name, not the file name.

    2. 2

      Open run Input "cmd", first enter "D:", the purpose is to open D drive , then enter;

      Then enter "Javac Helloworld.java"for the purpose of compiling the program , note that "Javac" followed by a space, and then enter;

      Finally enter "Java HelloWorld", in order to output the program results , note that "Java" also has a space behind, and then enter, you can output "helloworld! ”。

Win10 Jdk1.7+maven (free installation 3.2.5)

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.