Le learning Java byte 03-path environment variable

Role 1. path environment variable

Ensure javac command can be run in any directory.

2. path configuration of two options:

A method as follows:

① Click Computer -> right click -> Properties

② Advanced System Settings

③ Advanced -> Environment Variables

④ system variable àPath-> Edit à cursor to the front / rear à English under the state with a semicolon ";"

⑤ into the bin under the jdk installation directory, and then click the address bar, copy this path to the top of the variable value.

⑥ OK and exit all the way

Method II as follows (recommended):

Find the environment variable position, in which the system variable

New:

Variable name: JAVA_HOME

Variable value: C: \ Program Files \ Java \ jdk1.7.0_71

modify:

Variable name: Path

Variable value:% JAVA_HOME% \ bin; previous contents

Jdk is installed properly and test environment variable is configured correctly

Start - Run -cmd- javac -version Enter

Note : After configuring the environment variables, remember to re-open a DOS window, otherwise the configuration does not take effect.

Watch music bytes, video and more Java dry technical articles, original music bytes!


Reproduced in: https: //juejin.im/post/5d08efa2e51d455d850d3af0

Guess you like

Origin blog.csdn.net/weixin_33693070/article/details/93180311