Java Web Development Environment Building

Source: Internet
Author: User
Tags java web

This article focuses on the process of building the eclipse environment under Windows, including the installation and configuration of the JDK, the installation and configuration of Tomcat, the installation and configuration of the MyEclipse, and the configuration and installation of the relevant frameworks and plugins.

A JDK Installation and configuration (Java 7)

Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Select the installation file for the platform, Windows7 32-bit operating system, using version: Jdk-7u67-windows-i586.exe

Install it by default, and configure the environment variables when the installation is complete.

For example, my installation directory is: D:\Java\jre7.

The environment variable is configured as follows:

XP system, right-click on "My Computer"--Select "Properties"--select "Advanced"--click "Environment variable" in "System variable (S)"

NEW: Java_home:d:\java\jre7

NEW: Class_path:.; %java_home%\lib

Edit: PATH: Add%java_home%\bin to the front;

After creating the environment variable, open cmd and enter "Java-version" to verify that the installation was successful.

Two. Tomcat installation and configuration (apache-tomcat-7.0.55)

Tomcat's official website: http://tomcat.apache.org/index.html

windows732-bit operating system, using version download address: http://tomcat.apache.org/download-80.cgi

This is the uncompressed version, after the download unzip, Tomcat needs JDK to run, if we have configured the JDK environment variable, then Tomcat will automatically read the JDK information from the environment variables, no special configuration.

The environment variable is configured as follows:

XP system, right-click on "My Computer"--Select "Properties"--select "Advanced"--click "Environment variable" in "System variable (S)"

NEW: catalina_home:d:\apache-tomcat-7.0.55

Edit: PATH: In front of the first add? Talina_home%\bin;

For example, we will extract the Tomcat directory as: D:\apache-tomcat-7.0.55 (hereinafter referred to as%tomcat_home%) into the%tomcat_home%/bin, double-click "Startup.bat" to start Tomcat, If Tomcat starts normally, we can access "http://localhost:8080/" to open the Tomcat administration page. You can turn tomcat off by double-clicking "Shutdown.bat".

Three. MyEclipse installation and configuration (Myeclipse-10.7-offline-installer-windows.exe)

Select the installation file for the platform, under windows732-bit operating system, using version: http://www.myeclipseide.cn/

installation directory: D:\MyEclipse, configure environment variables after installation is complete. Configure Tomcat below:

Open MyEclipse, click Preferences, on the left side of the popup window, select myeclipse--servers--tomcat--tomcat7.x, as shown in. In Tomcat homedirectory, select the installation directory for Tomcat in browse D:\apache-tomcat-7.0.55, click Apply

To configure the JDK, click the JDK below myeclipse--servers--tomcat--tomcat7.x.

Click Add in the Pop-up window, select Java's JRE directory D:\Java\jdk1.7.0_67 in the directory to the right of the Jrehome column, and click Finish to finish. At this point, the configuration is complete.

The configuration tests are as follows:

File--new--web project, enter test in the popup window project name and select Java EE6.0, click Finishe to

Click the toolbar button to select the newly created test item in the Pop-up window
Click Add, in the pop-up window, select Tomcat 7.x in the Server column, click Finish

Click the toolbar icon and select Tomcat 7.x--start, for example, click Finish to finish

At this point, the test is complete and the console displays some execution information.


Four. mysql installation and configuration mysql (mysql-5.6.20-win32)

1 download MySQL Community server's Windows platform Mysql-5.6.20-win32.zip compression pack from http://dev.mysql.com/downloads/mysql/

2 Unzip the file to D:\mysql-5.6.20-win32

3 Copy the D:\mysql-5.6.20-win32 directory file My-default.ini, rename it to My.ini in the current directory (D:\MYSQL-5.6.20-WIN32),

4 Open My.ini for MySQL configuration, mainly set the following items:

Basedir =d:\mysql-5.6.20-win32

DataDir =d:\mysql-5.6.20-win32\data

5 Add the MySQL D:\mysql-5.6.20-win32 directory to the system environment variable after path;

6 in the CMD console, switch directories to D:\mysql-5.6.20-win32 (prompt to switch directories), run: Mysqld-install install the MySQL service, and then start the service: net start MySQL;

7 Run mysqladmin-uroot-p password 123456 under cmd console and enter, set the root user new password to 123456.

8 log in to the MySQL database using the root user, run mysql-uroot-p under the CMD console, enter the previously set password (123456) to log in;

9. Verify: Enter show databases; show all databases (prompt, note input correct, include ";" symbol)

Enter show engines; view MySQL storage engine (prompt, note input is correct, include ";" symbol)

Java Web 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.