一. 下载jdk 并安装
二. 配置环境变量
JAVA_HOME:D:Javajdk1.8.0_25 CLASSPATH :.;%JAVA_HOME%lib;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib ools.jar; Path:;%JAVA_HOME%in;%JAVA_HOME%jrein
三. 测试
cmd窗口输入一下指令
Java,javac,java –version