Java Development Environment configuration, java Development Environment

Source: Internet
Author: User

Java Development Environment configuration, java Development Environment

I. Glossary:

JDK: Java development kit (Java tool development kit)

JRE: java runtime envornment (Java runtime Environment)

2. precautions before installation:

View the computer system type, right-click computer, and choose Properties> View, for example:

3. Install JDK:

Step 1: Download the corresponding JDK version based on the information in the previous step (64-bit Windows 7 ).

(: Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)

Step 2: Double-click xxx.exe to install JDK. You can also select the installation path)

Step 3: Under the selected installation directory: C: \ Program Files \ Java, JDK 1.8.0 _ 65 and jre1.8.0 _ 65 have been successfully installed.

Now let's try whether the Java environment has been installed successfully.

1. Open the Run window through Windows + R, and press cmd.

2. Click "OK" to enter the command line mode:

3. Press the "javac" command on the keyboard and press Enter. An internal command is not prompted.

4. Run the command cd C: \ Program Files \ Java \ jdk1.8.0 _ 65 \ bin and press enter to enter the bin directory for jdk installation.

5. Repeat the command "javac" to list a series of information.

6. Run the Java-version command to check the Java version.

 

Note: The Java environment has been successfully installed according to information 5 and 6, but why does it report an error in 3? This is because the javac command cannot be found in Windows because no environment variable is added. The following describes how to configure environment variables.

 

4. Configure environment variables:

Step 1: locate the environment variable configuration location

Computer> Properties> advanced system Settings> advanced> environment variables> system variables> double-click Path to add the variable value to the end. C: \ Program Files \ Java \ jdk1.8.0 _ 65 \ bin (jdk installation directory)

5. Verify that the Java command is successfully executed in any directory

Open cmd according to the above operation steps, and input the command "D:" And press enter, and press ENTER for "Java-version ".

The Java version information is displayed successfully, indicating that it has been completed! Now you can write hello world!

 

Related Article

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.