首先,我们搭建一个开发环境
需要的东西:eclipse + JDK 1.8
配置过程:
1.eclipse解压
2.JDK的安装文件放到eclipse中
3.启动eclipse时加参数指定使用的JDK,如下:
eclipse.exe -vm "Javajdk1.8.0_51injavaw.exe"
说明:这样做的目的就是所有的东西都在eclipse文件夹下,可以把这个环境随身携带,无需安装,打开就能用。
4.菜单->windows->preferences->Java->Installed JREs,设置JDK路径