Java Web Development Environment Configuration detailed _java

Source: Internet
Author: User
Tags mysql download win32 java web tomcat

This is a necessary process for Java Web Development, only for novice reference, Master can be ignored!

First look at what to install:

JDK Download Address: http://www.jb51.net/softs/214120.html

Eclipse Download: http://www.jb51.net/softs/143046.html

MySQL Download: http://www.jb51.net/softs/40589.html

Tomcat Download: http://www.jb51.net/softs/417569.html

You can also go to the official online download, version does not have to be the same, if not find a Google, the following into the topic.

First, install the JDK

1, download get Jdk-6u35-windows-i586.exe, about 70M, directly double-click to run the installation, all the way next can, by default is installed to the system disk under the program Files, I am here under C:\Java, Note After installing the JDK will automatically run the installation JRE, then the installation path is best as the JDK, easy to manage, I am under the C:\Java.

2, environment variable configuration: Right click "My Computer", click "Properties", select the "Advanced" tab, click "Environment Variables", in "System Variables", set 3 properties, Java_home,path,classpath (no matter what the case), if it already exists, click "Edit", If it does not exist, click "New"; The general path is already there.

3. The configuration is as follows:

Java_home
C:\Java\jdk1.6.0_35

CLASSPATH
.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

Path
%java_home%\bin;%java_home%\jre\bin;

As shown in figure:

Note: The variable value of the Classpath item is preceded by a bit, and the path's variable value is generally added to the front of the original value, if added to the back to be separated by a semicolon

4, verify the installation success or not: "Start"->; " Run ", type" cmd ", type the command" Java-version "," Java "," Javac "several commands, appear the screen, indicating the success of environment variable configuration;

Second, the installation of Tomcat

1, download Apache-tomcat-6.0.35.exe, about 7M, I this is the installation package (compression package directly decompression can), double-click Run all the way next can be installed, which can also configure the installation path, I keep the default path, the port is also the default 8080.

2, verify the installation: Open the browser, type http://localhost:8080/, if the page appears to install successfully:


Iii. Eclipse Installation and configuration

1, download Eclipse-jee-juno-win32.zip, about 220M, directly decompression, I extract to C:\eclipse;

2, download Tomcat plug-in tomcatpluginv33.zip (must be under eclipse corresponding version of the plug-in), about 330K, decompression has been com.sysdeo.eclipse.tomcat_3.3.0 folder;

3, copy the com.sysdeo.eclipse.tomcat_3.3.0 folder to the Eclipse directory in the Plugins plugins folder, I am here C:\eclipse\plugins, the following figure:

4, run Eclipse, set workspace, I set up in C:\workspace, run Eclipse after the toolbar will appear Tomcat toolbar, if not check the previous steps, as shown:

5, then the Eclipse configuration, first JRE, generally this is already configured, the following figure:

6, then the Web application server configuration, the following steps:

Click Add ...

Select Tomcat v6.0, then next ...

Select the Tomcat installation path and the corresponding jre,finish.

7, configure Tomcat, select version, installation path and Server.xml, as shown below:


Advanced set up the Tomcat path, as shown in the following figure:

JVM Settings ...

By completing the above steps Tomcat is already configured.

Four, MySQL installation and configuration

1, Download Mysql-5.5.27-win32.msi, about 30M, run the installation directly, all the way next, which needs to pay attention to the network port generally keep the default 3306, character encoding is generally set to UTF-8, you must remember that you set the root password, there are no accidents can generally be installed successfully;

2, Download Navicat Lite Mysql.rar, about 8M, this is a graphical interface tool used to manage MySQL, directly installed;

3, Run Navicat Lite, create a new database connection, the following figure:

Fill in the Connection name (casually fill in), and the root username and password, the following figure:

Test the connection if successful, you can find the connection in the left-hand column, double-click it to open the corresponding database server

4, Next is the new database, the following figure:

5, a new table, you can use the interface to create, or you can use SQL statements, the following figure:

6, double-click the corresponding table, you can open the table for data add Modify Delete, the following figure:

Summary: The Java Web Development environment has been basically built up, if time runs, the next article to write an example program and share!

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.