cmd: java -version java版本号
java -verbose jdk版本号
java环境变量配置
方式一
1)在系统变量里新建"JAVA_HOME"变量,变量值为:C:Program FilesJavajdk1.8.0_60(根据自己的jdk的安装路径填写)
2)在系统变量里新建"classpath"变量,变量值为:.;%JAVA_HOME%lib;%JAVA_HOME%lib ools.jar (注意最前面有一点)
3)找到path变量(已存在不用新建)添加变量值:%JAVA_HOME%in;%JAVA_HOME%jrein
方式二
直接在环境变量中配置,不用配置系
统变量
CLASS_PATH .;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib ools.jar
JAVA_HOME C:Program FilesJavajdk1.8.0_131
path中配置 C:Program FilesJavajdk1.8.0_131in