Eclipse under the Java Development Environment (JDK+MAVEN+SUBVERSION+TOMCAT)

Source: Internet
Author: User
Tags lua svn tomcat server tortoisesvn

Distance on a blog, looks like three or four years, ashamed ... Just entered the IT industry, hoping to do some daily memos for their own review, if you can provide some help for other small partners, it will be a blessing.

No more pull, it should have written these basic things, but busy (lazy) did not record. This article briefly describes how to build the Java EE development environment under Eclipse, I work under Win 7, with Eclipse MARS+JDK1.7+MAVEN3+SUBVERSION1.8+TOMCAT7, With Subclipse and Maven Plug-ins for versioning and project building, databases and clients are MySQL and navicat for MySQL. Let's say JDK, Maven, Subversion, and Tomcat (order independent), followed by integration in Eclipse.

1. First, install and configure JDK1.7. Relatively simple, installation does not say, double click EXE straight, configure system environment variables Java_home, classpath and Path, refer to the following

JAVA_HOME:JDK Install the path, similar to this C:\Program files\java\jdk1.7.0_79

CLASSPATH:%java_home%/lib;%java_home%/lib/tool.jar;%java_home%/lib/dt.jar;

Precede the PATH environment variable content with the pathname of the JDK bin, similar to%java_home%\bin;

If configured successfully, enter java-version below the cmd command line to display the JDK version information

2. Install and configure Maven. Download decompression into a specific directory, configure system environment variables, create a new maven_home, and configure it in path as follows:

Maven_home: The directory to be unpacked, similar to C:\Program files\apache-maven-3.2.5

Precede the PATH environment variable content with the pathname of the MAVEN bin, similar to%maven_home%\bin;%java_home%\bin;

Configuration succeeded, enter mvn-v under cmd command line to display version information for MAVEN

3. With regard to subversion installation, there are mainly server-side and client-side, I only installed the client TORTOISESVN, Windows under the server should be very simple next down can be, but may involve some configuration, such as warehouse location, access address, user or rights management, Details can be searched Baidu experience or library.

Common with SVN, are using the client to move out of the project or file, so generally only installed clients, TORTOISESVN installation is also very simple next go down; not very familiar with this turtle, back to continue Baidu.

4.Tomcat installation, decompression and put into a specific directory is good. Configuring the Tomcat server in Eclipse is ok later.

5.Eclipse Mars installation, but also to extract into a specific directory is good. Then configure it based on the JDK, Tomcat, etc. that you installed previously, or install MAVEN and SVN plug-ins.

To open eclipse, configure the Tomcat server under Window-preferences, and because the Tomcat server configuration also requires a corresponding JDK, configuring Tomcat appears to be indirectly equipped with the JDK. In the runtime environment under preferences, add the Tomcat server, select the corresponding Tomcat version, point to the installation directory of the extracted Tomcat, and specify the JDK to use in the JRE. Click Installed JREs, select the default standard VM, and then choose the JDK you installed earlier, and then match Tomcat and JDK.

And Maven also, the Mars built maven, but generally with their own version, but also in the preferences under the MAVEN under the installation to add a native installed Maven, and check it as a nested maven

6.Eclipse plug-in Suclipse and M2E installation, corresponding to the SVN version control Plug-ins, MAVEN built plug-ins. It is most convenient to install online with the Eclipse markets plugin under the Eclipse Help menu, which is recommended for online installation. If there's a problem, download only the source plug-in package is overwritten under Eclipse's plug-in installation directory, and may involve other changes or configurations.

Just talk about online installation, search Subclipse in eclipse markets, and then select it to download and install. Note that there is a small problem in the installation, may affect the back you use the SVN repository, that is, download the Subclipse list has an option similar to this subclipseintegrations ... (optional), it is best not to check it, before the selection of a problem before unloading. I wonder if this problem will arise in the new version of Eclipse. I don't check that option here. After the installation is successful, you can see the SVN option at import, you can move the project from SVN, and you can see the SVN repository those views, the upper right corner.

The Maven plugin, too, searches the markets for m2e, then finds M2e's Lua version, does not see the Mars corresponding m2e, so it downloads the m2e (Lua), or it can be used, and it should be the Mars version of Eclipse to be compatible. Maven plug-in installed successfully, as if not too many obvious signs, originally it is built, and generally can directly to the project right key run as, and then there are maven clean, the MAVEN build those commands out, very powerful project building management tools.

7. By the right, Java EE is also inseparable from the database server and the client, the server can not use, but need remote access to the database management tools. But I've got it all installed, MySQL5 and navicat for MySQL, just install it right.

Here, the basic Java development environment is almost built, the next to get Java EE framework, it is relatively simple, the use of MAVEN to build management is convenient. However, these tools are not very easy to use, but also in the actual work to familiarize them.


PS: Originally wanted to upload the required package, but did not find the upload location, the package is also a bit large. Just put a download address, I hope to be useful to small partners.

Jdk1.7:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u80-oth-jpr

Tomcat 7 (apache-tomcat-7.0.64-windows-x64.zip): http://tomcat.apache.org/download-70.cgi#7.0.64

Eclipse MARS:HTTP://WWW.ECLIPSE.ORG/DOWNLOADS/PACKAGES/ECLIPSE-IDE-JAVA-EE-DEVELOPERS/MARSR

Maven 3.25 (apache-maven-3.2.5-bin.zip): http://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/

TortoiseSVN 1.9:http://sourceforge.net/projects/tortoisesvn/files/








Related Article

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.