Java EE Development Environment Building

Source: Internet
Author: User

Download Installation 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

Download Install Apache Maven

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.zip

File name: Apache-maven-3.0.5-bin. Zip

Installation path: D:\apache-maven-3.0.5

environment variable Settings

Path + =D:\apache-maven-3.0.5\bin

Download install Eclipse IDE for Java EE developers

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.zip

File name: Eclipse-jee-kepler-sr1-win32.zip

Installation path: D:\eclipse-jee-kepler-SR1-win32\eclipse

Eclipse 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.zip

Installation directory: E:\apache-tomcat-8.0.3

environment variable settings:

catalina_home=e:\apache-tomcat-8.0.3

Routine Demo -theEcho WebSocket Sample application

D:\glassfish4\samples is an example of a variety of new features used to demonstrate Java EE 7

Copy folder to working directory

E:\workspace\eclipse-jee\javaee7\samples

Open a Command Prompt window and go to the websocket echo routine directory

D:\glassfish4\samples\websocket\echo>

Execute command mvn cleancompile Compile build routine

After the command executes successfully , the war package is generated :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\webapps

Start Tomcat

Execute BAT script:E:\apache-tomcat-8.0.3\bin\startup.bat

Open the foreground page in the browser (support HTML5):http://localhost:8080/websocket-echo

As shown in the following:

Click on the "press me" button

The browser will send the text in the edit box through the web socket to the background Web socket server, and the server receives the text

Sent back to the browser, the browser displays the text received below the page.

Java EE Development Environment Building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.