WIN10 Configuring Java environment variable issues

Source: Internet
Author: User

The configuration environment variable, basically is in the computer-"attribute---" Advanced system setup---"Environment variable-" system variable

----------------------------

Java_home C:\Program Files (x86) \java\jdk1.7.0_80 (installation directory for Java)

CLASSPATH%java_home%\lib;

path;%java_home%\bin;%java_home%\jre\bin;

-------------------------------

This is basically it.

But when the configuration error, do not know how to check, I here provide a method

While watching [MD Viewing environment variables] (http://blog.csdn.net/zkn_cs_dn_2013/article/details/49122015) This article,

can be through set environment variables, see the corresponding variable, not some of the online said must write absolute path, actually write%java_home%\bin; can be converted to absolute path by variable%java_home%.

Note:

1. View all currently available environment variables: C:\user\admin>Set

2. View an environment variable: enter "Set Variable name", for example, to see the value of the path variable, enter c:\user\admin>Set Path

3, modify the environment variable: enter "Set Variable name = variable content", such as set path to "D:\hacker.exe", as long as the input set path= "D:\nmake.exe".

Note that this modified environment variable refers to the current content to overwrite the previous content, not append. For example, when I set the path above, if I re-enter set path= "C" again, when I look at the path, the value is "C:",

Rather than "D:\nmake.exe"; C ".

4. Set to NULL: If you want to set a variable to NULL, enter "Set Variable name =". If "Set path=" then look at the path is empty. Note that the above has been said to work only in the current command-line window. So don't right-click on "My Computer"-"properties" when viewing path.

5. Append content to variable (different from 3, that is overwrite): enter "Set variable name =% variable name%; variable Contents". For example, to add a new path for path, enter "Set path=%path%;d: \hacker.exe" to add D:\hacker.exe to path and execute "set Path=%path%;c:" Again, then use the set Path statement to view, there will be: d:\hacker.exe;c: Instead of just the 3rd step

Reference: http://blog.csdn.net/zkn_cs_dn_2013/article/details/49122015

WIN10 Configuring Java environment variable issues

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.