win10 java environment variables to configure the way

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

1, the following configuration parameters:
the CLASSPATH
;%% the JAVA_HOME \ lib \ Dt.jar;%% the JAVA_HOME \ lib \ the tools.jar;.
(Note that there are in front of points on each side of English format semicolon.)
The JAVA_HOME
D: \ the Java \ java1.8 64 \ JDK
the PATH
D:. \ the Java \ java1.8 64 \ JDK \ bin;%% the JAVA_HOME \ bin;%% the JAVA_HOME \ JRE \ bin
(. Note that the foregoing Java_HOME point format English)
2 arranged after executing cmd command : javac
the Java
the Java -version
after 3,2 steps are not wrong, write a HelloWorld.java class, respectively HelloWorld.java ① compile javac
② the implementation of the HelloWorld the Java
③ decompile javap HelloWorld.class
successful execution after all Description environment variable is not a problem.
Note execute cmd command javac compiler HelloWorld.java class, should be executed in the directory where the HelloWorld class.

Guess you like

Origin blog.csdn.net/weixin_40358672/article/details/92066252