Detailed explanation of project environment construction configuration (maven, svn)

1. JDK installation, development environment configuration

      First, select the appropriate jdk to download and install according to your own system and the environment required for development.

———————————————————————————————————————————————————

 

1.1 New variable name: JAVA_HOME (installation path) Variable value: E:\ Java \jdk1.6.0_43 (this is my jdk installation path)

1.2 Edit the variable name: Path (configure the development and compilation path) Add: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin

1.3 New variable name: CLASSPATH (configured java core libraries, API) value of the variable:;.% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar

(Note: do not put ";" at the end of the variable setting)

———————————————————————————————————————————————————

After the setting is completed, of course we need to test , open "Run" --> enter "CMD" --> enter: java on the command line, then press Enter; enter javac, press Enter, enter java -version, press Enter, if it appears The following three screens, then the JDK configuration is successful, otherwise you need to check the configuration of the environment variables.


 


 


 

 

 

2. Installation of MyEclipse

       I am using MyEclipse8.5 (I have been using it since university, and it is the first integrated stable version of Myeclipse). After completion, we start MyEclipse, set the working path, or directly default. We open window-->preference and enter jdk, as shown in the figure below, select the default JRE of Eclipse to install for ourselves, not the one that comes with eclipse.


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

3. Tomcat8 installation

       Tomcat我使用的版本是8,大家可以到apache的官网上去下载,http://tomcat.apache.org/download-80.cgi,我是用的安装版,所以不需要配置任何东西,如果人比较懒不妨就下个安装版吧。压缩包版本的需要自己配置环境变量,这个问下度娘就可以了,我本人比较懒...见谅!

       安装版本的安装过程也是一路到底,而且不需要配置环境变量。

4.MyEclipse配置Tomcat

       项目开发的时候最好不要是用MyEclipse自带的Tomcat,所以需要配置我们安装好的tomcat。打开window-->preference输入tomcat,按照下图进行配置即可,其他版本的tomcat对应着配置就可以了。


5.Maven安装配置

5.1 maven配置环境变量      

 下载maven,就是一个包:apache-maven-3.2.1,我用的版本是3.2.1,解压到一个路径,然后配置环境变量:

——————————————————————————————————————————————————

 

      5.1 新建变量名:MAVEN_HOME  变量值:D:\server\apache-maven-3.2.1(这是我的MAVEN路径)

      5.2 编辑变量名:Path  在最前面加上:%MAVEN_HOME%\bin;(注意,最后要有个";"作为分隔符)

——————————————————————————————————————————————————

完成之后,在命令行输入:mvn -version查看是否有以下内容,如果有表示配置成功。


5.2Maven数据仓库的配置     

        MAVEN中还有一个重要的配置就是数据仓库的路径配置,我们找到MAVEN的安装路径,进入conf-->打开settings.xml,找到localRepository标签,此时是被注释掉的,我们解除注释,然后配置一个路径,例如:d:/server/MavenRepository/maven_jar,这样以后MAVEN管理下载的jar包都会在这个路径下。当然我们需要建这样一个目录结构,然后还要讲settings.xml复制一份到d:/server/MavenRepository下,这个在与MyEclipse集成时会用到。

5.3MyEclipse中集成Maven

      一样在preferences中进行配置,如下图:



       此时,点击File-->new-->other-->MyEclipse-->Maven4MyEclipse-->Maven Project,如果可以看到这些,证明配置成功,已经可以建立Maven项目了。

6.SVN安装

     SVN是代码版本管理器,首先在本地安装一个SVN管理器,然后配置MyEclipse的SVN插件,将插件下载下来解压后,直接复制到MyEclipse安装目录下dropins中即可。任意建立一个项目,右键项目-->team-->share Project..,打开后如果看到了SVN代表插件安装成功。

7. JS代码提示安装(Spket插件)

     参看之前的一篇博文:http://blog.csdn.net/zhshulin/article/details/25635883

 

8. JAVA代码提示

       After the above process, the environment required for the entire project is almost completed. Next, a little trick, after configuring as shown in the figure below, you can change the code prompt only when . appears to any letter +. When it appears, the code prompt ( .abcdefghijklmnopqrstuvwxyz ):

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326444228&siteId=291194637