English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

MyEclipse+Tomcat+MAVEN+Complete Environment Setup for SVN (Illustrated Tutorial)

This time I changed a computer, so I need to configure the project development environment again, and record all the processes for future reference, and at the same time provide a reference for everyone.

1.Installation of JDK

First download JDK, which can be downloaded from the official website of Sun Company, choose according to your system64location is32installation process is just 'next' all the way to the end. Of course, after the installation is complete, you need to configure the environment variables.

1.1Create a variable named: JAVA_HOME Variable value: E:\Java\jdk1.6.0_43(This is the path where my JDK is installed)

1.2Edit the variable name: Path and add the following at the end: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin

1.3 Create a variable named: CLASSPATH Variable value: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

(Note: Do not add a semicolon at the end of setting variables)

After the settings are complete, of course, we need to test, open 'Run'-->Enter 'CMD'-->Enter 'java' in the command line and press Enter; enter 'javac' and press Enter, then enter 'java' -version, press Enter, if the following three screens appear, then the JDK configuration is successful; otherwise, you need to check the configuration of environment variables.




2.Installation of MyEclipse

I am using MyEclipse2014, everyone can download it and install it all the way. You can choose whether to install during the installation.32location is64After completing, we start MyEclipse, set the working path, or we can directly use the default. We open window--> Enter preference as jdk, install according to the following figure, and select the default JRE installed by Eclipse instead of the one built-in in eclipse.


At this point, we can create a random JAVA project, and then write a helloworld to test whether it is correct.

3.Tomcat8installation

Tomcat I use is8, everyone can download it from the official website of apache.http://tomcat.apache.org/download-80.cgi, I use the installation version, so I do not need to configure anything. If you are very lazy, you might as well download the installation version. The compressed package version needs to configure the environment variable yourself. You can ask Baidu for this, I am very lazy... please forgive me!

The installation process of the installation version is all the way to the end, and it does not require configuration of the environment variable.

4.MyEclipse Tomcat Configuration

When developing projects, it is better not to use the Tomcat built-in in MyEclipse, so we need to configure the Tomcat we have installed. Open window--> Enter preference as tomcat, configure according to the following figure, and the configuration is the same for other versions of tomcat.


5.MAVEN Installation and Configuration

5.1 MAVEN Configuration of Environment Variable      

 Download MAVEN, which is a package: apache-maven-3.2.1, I use the version3.2.1, unzip it to a path, and then configure the environment variable:

5.1.1  Create a new variable name: MAVEN_HOME Variable value: D:\server\apache-maven-3.2.1(This is my MAVEN path)

5.1 .2 Edit the variable name: Path. Add: %MAVEN_HOME%\bin; at the beginning (note that there must be a ";" as a separator at the end).

After completing, input: mvn in the command line. -version to check if the following content exists. If it does, it means the configuration is successful.


5.2Maven Data Warehouse Configuration     

There is another important configuration in MAVEN, which is the configuration of the data warehouse path. We find the installation path of MAVEN, enter conf--> Open settings.xml, find the localRepository tag, which is currently commented out. We uncomment it and then configure a path, for example: d:/server/MavenRepository/maven_jar, so that in the future, the JAR packages downloaded by MAVEN will be in this path. Of course, we need to create such a directory structure, and then copy settings.xml to d:./server/MavenRepository, which is used when integrating with MyEclipse.

5.3MyEclipse integrated Maven

Configure in preferences as shown in the figure below:



At this time, click File-->new-->other-->MyEclipse-->Maven4MyEclipse-->Maven Project, if you can see these, it means the configuration is successful, and you can create Maven projects.

6.SVN installation

SVN is a code version control tool. First, install an SVN manager locally, then configure the SVN plugin of MyEclipse, copy the plugin downloaded and unpacked directly to the dropins directory under the MyEclipse installation directory. Create any project, right-click the project-->team-->share Project.., open it and if you see SVN it means the plugin has been installed successfully.

7. JS code hint installation (Spket plugin)

Refer to the previous article: https://www.oldtoolbag.com/article/131263.htm

8. JAVA code hint

After the above process, the environment required for the entire project is basically set up. Next, a small trick, as shown in the figure below, after the configuration, you can change the code hint that appears only when (.) is entered to any letter+The code hint appears when (.) is entered:


That's all for this article. Hope it helps with your learning and that you will support the Yelling Tutorial more.

Declaration: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, does not edit the content manually, and does not assume any relevant legal liability. If you find any content suspected of copyright infringement, please send an email to: notice#oldtoolbag.com (Please replace # with @ when sending an email for reporting. Provide relevant evidence, and once verified, this site will immediately delete the suspected infringing content.)

You May Also Like