I changed my computer this time, so I need to reconfigure the project development environment. I will record all the various things in the process to facilitate the installation again in the future. At the same time, I will give you a reference.
1.JDK installation
First, download JDK. This can be downloaded from the official website of Sun Company. Choose 64-bit or 32-bit according to your own system. The installation process is next all the way to the end. After the installation is completed, of course, you need to configure environment variables.
1.1 New variable name: JAVA_HOME Variable value: E:/Java/jdk1.6.0_43 (This is my jdk installation path)
1.2 Edit variable name: Path is added after it: %JAVA_HOME%/bin; %JAVA_HOME%/jre/bin
1.3 New variable name: CLASSPATH Variable value: .;%JAVA_HOME%/lib;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar
(Note: Do not add ";" when setting the end of the variable)
After the settings are completed, of course we need to test it. Open "Run" --> Enter "CMD" --> Enter: java, and then enter; enter javac, enter enter, enter java -version, enter. If the following three screens appear, then the JDK configuration is successful, otherwise you need to check the configuration of the environment variables.
2.MyEclipse installation
I am using MyEclipse2014. After downloading this, you can install it all the way. You can choose whether to install 32-bit or 64-bit. After completion, we start MyEclipse and set the working path, which can also be directly defaulted. We open window-->preference and enter jdk, install the following figure, and select the default JRE of Eclipse to install it yourself, instead of the ones that come with eclipse.
At this time, we can set up a JAVA project casually and write a helloworld to test whether it is correct.
3. Installation of Tomcat8
The version I use of Tomcat is 8. You can download it on the official website of apache. http://tomcat.apache.org/download-80.cgi. I use the installation version, so there is no need to configure anything. If you are lazy, you might as well go to the next installation version. The compressed package version requires you to configure the environment variables yourself. Just ask the question. I am lazy myself... sorry!
The installation process of the installation version is also all the way to the end, and there is no need to configure environment variables.
4.MyEclipse configuration Tomcat
It is best not to use the Tomcat that comes with MyEclipse, so we need to configure the tomcat we installed. Open window-->preference and enter tomcat, and follow the figure below to configure it. Other versions of tomcat correspond to the configuration.
5.Maven installation configuration
5.1 Maven configuration environment variables
Download maven, which is a package: apache-maven-3.2.1. The version I use is 3.2.1. Unzip it to a path, and then configure the environment variables:
5.1.1 New variable name: MAVEN_HOME Variable value: D:/server/apache-maven-3.2.1 (This is my MAVEN path)
5.1.2 Edit variable name: Path is first added: %MAVEN_HOME%/bin; (Note that there must be a ";" as the delimiter in the end)
After completion, enter: mvn -version on the command line to see if there is the following content. If there is, the configuration will be successful.
5.2 Maven data warehouse configuration
Another important configuration in MAVEN is the path configuration of the data warehouse. We find the installation path of MAVEN, go to conf--> open settings.xml, and find the localRepository tag. It is commented out at this time. We uncomment and configure a path, for example: d:/server/MavenRepository/maven_jar. In this way, the jar packages downloaded by MAVEN management will be in this path in the future. Of course, we need to build such a directory structure, and then copy settings.xml to d:/server/MavenRepository. This will be used when integrating with MyEclipse.
5.3 Integration of Maven in MyEclipse
Configure it 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 proves that the configuration is successful and you can already establish the Maven project.
6.SVN installation
SVN is a code version manager. First, install an SVN manager locally, then configure the SVN plug-in of MyEclipse. After downloading the plug-in, decompress it, and copy it directly into drops in the MyEclipse installation directory. Create any project, right-click the project --> team-->share Project.., and if you see SVN after opening it, it means that the plug-in installation is successful.
7. JS code prompts to install (Spket plugin)
See a previous article: http://www.VeVB.COM/article/131263.htm
8. JAVA code prompts
After the above process, the environment required for the entire project has been almost completed. Next, after configuring the code only when the . appears, you can change the code prompt when it appears to be +. The code prompt when it appears (.abcdefghijklmnopqrstuvwxyz):
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.