Specific steps for configuring JDK environment variables

  • 2020-04-01 01:50:31
  • OfStack

1. My computer --> Attributes - > Advanced - > The environment variable

 

2. Configure user variables:

2.1. New JAVA_HOME         C:\Program Files\Java\jdk1.6.0_31 (JDK installation path) 2.2. In   Under the PATH to add  ; The % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin 2.3. New CLASSPATH   .; % JAVA_HOME % \ lib. % JAVA_HOME % \ lib \ tools. The jar  

3. Test whether the environment variable configuration is successful

Start - > Run -- > CMD Enter java-version (the installed JDK version) or javac(compile command), and the help instructions shown in the figure below indicate a successful configuration

< img Alt = "" border = 0 SRC =" / / files.jb51.net/file_images/article/201305/2013050212081328.png ">  


Related articles: