WIN10 System Configuration Java environment and some processing methods of encountering problems

Source: Internet
Author: User

O1 Java Installation:

Download from Java official website: https://www.java.com/zh_CN/

Installation Tutorial: http://jingyan.baidu.com/article/03b2f78c137ec85ea237aec7.html

1.                                                                                                                                            2,                                                                                               3,

                       

4.                                                                                                                                5,                                                                                             6,

7.

Can be installed according to the above tutorial

These two folders will be available after the download is successfully installed

O2 Environment Configuration:

Right click on the computer----properties----Click Advanced System settings------environment Variables---"In the system variables:

1) Create a new java_home variable in the system variable, the value of the variable is: C:\Program files\java\jdk1.6.0_14 (fill in according to their own installation path) (Note: No sign before and after) is the path of the circle in the diagram copy and paste

2) New CLASSPATH variable, variable value is:.; %java_home%\lib;%java_home%\lib\tools.jar (note: Front pastry, semicolon, back semicolon)

3) Add the variable value in the path variable (existing without new):%java_home%\bin;%java_home%\jre\bin (Note the ";" between the variable values) (Note: Write at the front of the original variable value is unsigned, followed by a semicolon)

The installation and configuration are complete by this step.

O3 Verify the configuration is successful:

Run--"input cmd

Show this diagram

Then enter Java to display this figure

Input java-version Display:

Input Javac Display

Description the configuration was successful.

O4 the problems and solutions I personally encounter

Issue: Javac always show not internal or external commands during configuration environment

Workaround

I personally changed path :%java_home% in the system variable to full path C:\Program files\java\jdk1.6.0_14 (filled in according to your own installation path)

This is the path in java-home .

change in Classpeth . ; C:\Program files\java\jdk1.8.0_131\lib\dt.jar;c:\program Files\java\jdk1.8.0_131\lib\tools.jar(fill in% according to your installation path) Java-home% as in the path above note that the starting point cannot be lost)

I don't know the exact reason.

WIN10 System Configuration Java environment and some processing methods of encountering problems

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.