
1.2 Java EE开发环境配置
第一步:安装JDK8(默认安装路径为:C:\Program Files\Java\jdk1.8.0_91\),其安装过程如图1-6~图1-10所示。

图1-6 欢迎界面
在安装JDK8时,会同时安装好JRE1.8(默认安装路径为:C:\Program Files\Java\jre1.8.0_91)。

图1-7 “定制安装”界面

图1-8 “进度”界面

图1-9 “目标文件夹”界面

图1-10 “完成”界面
第二步:安装Tomcat 8.0(默认安装路径为:C:\Program Files\Apache Software Foundation\Tomcat 8.0),如图1-11~图1-18所示。

图1-11 Tomcat安装程序欢迎界面

图1-12 许可协议界面

图1-13 Tomcat选择安装方式界面

图1-14 端口配置界面

图1-15 默认选择JRE路径界面

图1-16 Tomcat路径设置界面

图1-17 Tomcat安装进度界面

图1-18 Tomcat安装完成界面
启动Tomcat服务,如图1-19所示。Tomcat服务状态图标如图1-20所示。

图1-19 启动Tomcat服务

图1-20 Tomcat服务状态图标
第三步:安装MyEclipse 2015。其安装界面如图1-21所示,启动界面如图1-22所示。

图1-21 MyEclipse 2015安装界面

图1-22 MyEclipse 2015启动界面
下面将MyEclipse、Tomcat、JDK进行整合,以提高开发效率。具体操作步骤如图1-23~图1-30所示。

图1-23 选择Preferences命令

图1-24 打开New Server Runtime Environment对话框

图1-25 选择Tomcat 8.0

图1-26 设置安装目录

图1-27 打开Edit Server Runtime Environment对话框

图1-28 打开Add JRE对话框

图1-29 选择JRE

图1-30 完成整合
至此,MyEclipse、Tomcat与JDK三个软件实现了整合,为以后开发基于Java EE的软件提供了开发环境。