1.配置JAVA_HOME

C:\Program Files\Java\jdk-12

2.配置path

C:\Program Files\Java\jdk-12\bin

C:\Program Files\Java\jdk-12\jre\bin

3.配置classpath

%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar