java ee sdk怎么安装,环境配置

java ee sdk怎么安装

 
下载安装Java EE SDK

版本:Java Platform,Enterprise Edition 7 SDK (with JDK 7u45)

下载页面:
http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-7-sdk-with-jdk-u45-2066865.html

文件名:java_ee_sdk-7-jdk7-windows.exe

安装路径:D:\glassfish4

环境变量设置
JAVA_HOME=D:\glassfish4\jdk7
JRE_HOME=D:\glassfish4\jdk7\jre
Path +=D:\glassfish4\jdk7\bin
classpath=D:\glassfish4\jdk7\lib\dt.jar;D:\glassfish4\jdk7\lib\tools.jar


Java EE 开发环境搭建
blog.csdn.net 2014年02月19日 11:18
下载安装Java EE SDK
版本:Java Platform,Enterprise Edition 7 SDK (with JDK 7u45)
下载页面:
http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-7-sdk-with-jdk-u45-2066865.html
文件名:java_ee_sdk-7-jdk7-windows.exe
安装路径:D:\glassfish4
环境变量设置
JAVA_HOME=D:\glassfish4\jdk7
JRE_HOME=D:\glassfish4\jdk7\jre
Path +=D:\glassfish4\jdk7\bi
classpath=D:\glassfish4\jdk7\lib\dt.jar;D:\glassfish4\jdk7\lib\tools.jar
下载安装Apache Mave
版本:Apache Maven 3.0.5
下载页面:
http://maven.apache.org/download.cgi
下载链接:
http://mirrors.cnnic.cn/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.zi
文件名:apache-maven-3.0.5-bin.zi
安装路径:D:\apache-maven-3.0.5
环境变量设置
Path +=D:\apache-maven-3.0.5\bi
下载安装 Eclipse IDE for Java EE Developer
版本:Eclipse Kepler(4.3.1) SR1
下载页面:
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr1
下载链接:
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-jee-kepler-SR1-win32.zi
文件名:eclipse-jee-kepler-SR1-win32.zi
安装路径:D:\eclipse-jee-kepler-SR1-win32\eclipse
Eclipse工作目录:E:\workspace\eclipse-jee
下载安装Tomcat
版本:Tomcat 8.0.3
下载页面:http://tomcat.apache.org/download-80.cgi
下载链接:http://mirror.esocc.com/apache/tomcat/tomcat-8/v8.0.3/bin/apache-tomcat-8.0.3-windows-x86.zi
安装目录:E:\apache-tomcat-8.0.3
环境变量设置:
CATALINA_HOME=E:\apache-tomcat-8.0.3
例程演示 -The Echo WebSocket Sample Applicatio
D:\glassfish4\samples下是用来演示 Java EE 7各种新特性的示例
将改文件夹复制到工作目录
E:\workspace\eclipse-jee\javaee7\sample
打开命令提示符窗口,进入到websocket echo例程目录
D:\glassfish4\samples\websocket\echo>
执行命令mvn cleancompile编译构建例程
命令成功执行后生成war包:E:\workspace\eclipse-jee\javaee7\samples\websocket\echo\target\websocket-echo.war
部署war包到tomcat:
将war文件websocket-echo.war拷贝到tomcat目录\webapps\ 下,即:E:\apache-tomcat-8.0.3\weba
启动tomcat
执行BAT脚本:E:\apache-tomcat-8.0.3\bin\startup.bat
在浏览器(支持HTML5)打开前台页面:http://localhost:8080/websocket-echo
如下图所示:
 
点击 "Press me"按钮
浏览器将会通过WebSocket发送编辑框中的文本到后台Web Socket服务器,服务器收到后将会把文本
发回到浏览器,浏览器在页面下方显示收到的文本。
 
 

 

posted @ 2017-12-17 16:21  刘卓远  阅读(8299)  评论(0编辑  收藏  举报