java下载
https://www.oracle.com/java/technologies/javase-downloads.html
根据操作系统选择对应版本下载
安装jdk,安装完成后设置环境变量
计算机-右键-属性-高级系统设置-环境变量-系统变量-新建变量
变量名:JAVA_HOME
变量值:C:Program FilesJavajdk*.*.*
变量名:CLASSPATH
变量值:.;%Java_Home%in;%Java_Home%libdt.jar;%Java_Home%lib ools.jar;
找到path,追加配置
变量名:path
变量值:%Java_Home%in;%Java_Home%jrein;
输入java和javac检查配置