How the Java EE SDK is installed
Download install Java EE SDK
Version: Java platform,enterprise Edition 7 SDK (with JDK 7u45)
Download page:
Http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-7-sdk-with-jdk-u45-2066865.html
File name: Java_ee_sdk-7-jdk7-windows.exe
Installation path: D:\GLASSFISH4
environment variable Settings
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 Development Environment Buildingblog.csdn.net < Span class= "ico ico-time" > February 19, 2014 11:18 Download install Java EE SDK version: Java platform,enterprise Edition 7 SDK (with JDK 7u45) download page: http://www.oracle.com/technetwork/java/ javaee/downloads/java-ee-7-sdk-with-jdk-u45-2066865.html file name: Java_ee_sdk-7-jdk7-windows.exe installation path: D:\ GLASSFISH4 environment variable Settings Java_home=d:\glassfish4\jdk7jre_home=d:\glassfish4\jdk7\jrepath +=d:\glassfish4\jdk7\ Biclasspath=d:\glassfish4\jdk7\lib\dt.jar;d:\glassfish4\jdk7\lib\tools.jar Download Install Apache Mave version: Apache Maven 3.0.5 download page: http://maven.apache.org/download.cgi download Link: http://mirrors.cnnic.cn/apache/maven/maven-3/3.0.5/binaries /apache-maven-3.0.5-bin.zi file name: Apache-maven-3.0.5-bin.zi installation path: D:\apache-maven-3.0.5 environment variable Settings path +=d:\ Apache-maven-3.0.5\bi Download install eclipse IDE for Java EE developer version: Eclipse Kepler (4.3.1) SR1 download page: http://www.eclipse.org/ DOWNLOADS/PACKAGES/ECLIPSE-IDE-JAVA-EE-DEVELOPERS/KEPLERSR1 download link: http://www.eclipse.org/downloads/download.php? file=/technology/epp/downloads/release/kepler/sr1/ Eclipse-jee-kepler-sr1-win32.zi file name: Eclipse-jee-kepler-sr1-win32.zi installation path: D:\eclipse-jee-kepler-SR1-wIn32\eclipseeclipse working directory: E:\workspace\eclipse-jee Download install tomcat version: Tomcat 8.0.3 download page: http://tomcat.apache.org/ download-80.cgi Download Link: http://mirror.esocc.com/apache/tomcat/tomcat-8/v8.0.3/bin/ Apache-tomcat-8.0.3-windows-x86.zi installation directory: E:\apache-tomcat-8.0.3 environment variable settings: catalina_home=e:\apache-tomcat-8.0.3 Routines Demo- The Echo WebSocket sample applicatiod:\glassfish4\samples is used to demonstrate the various new features of the Java EE 7 example to copy folders to the working directory E:\workspace\eclipse-jee \javaee7\sample Open a Command Prompt window and go to the WebSocket echo routine directory d:\glassfish4\samples\websocket\echo> execute the command mvn Cleancompile Compile build routine command successfully executed after generating war package: E:\workspace\eclipse-jee\javaee7\samples\websocket\echo\target\ Websocket-echo.war Deploy the War package to Tomcat: Copy the war file Websocket-echo.war to the Tomcat directory \webapps\, which is: E:\apache-tomcat-8.0.3\ Weba start Tomcat execution bat script: E:\apache-tomcat-8.0.3\bin\startup.bat Open the front page in the browser (support HTML5): http://localhost:8080/ Websocket-echo as shown: click on the "Press Me" button the browser will send the text in the edit box to the background Web socket server via WebSocket, and the server will send the text back to the browser when it is received. The browser displays the text received at the bottom of the page.
How the Java EE SDK is installed, environment configuration