Follow me on CSE series 2: Install CSE local development environment

The tools required to be installed in the application development environment include JDK, Maven and Eclipse. If these development tools are already installed, skip this section.

JDK constraints and installation steps

1. JDK version

JDK version requires 1.8 or higher.

2. JDK download

Please go to the official address of the JDK 1.8 version to download.

3. JDK installation

After downloading the JDK installation package on the official website, select the appropriate installation path to install the JDK.

Here is an example of a windows system:

Set the JAVA_HOME environment variable to point to the Java installation directory. Add %JAVA_HOME%\bin to the system path path. After the environment variable configuration is complete, use the java -version command to verify whether the installation is successful. The output in the Windows environment is as follows:

C:\Users\h00407576> java -version      
 java version "1.8.0_121"      
 Java(TM) SE Runtime Environment (build 1.8.0_121-b13)      
 Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Maven installation steps

Maven is a development tool that integrates project management, code compilation, project management and other capabilities.

Preconditions

JDK has been installed successfully.

installation steps

a. Download the Maven installation package at the official address.

b. (Optional) Download the Eclipse plug-in m2eclipse from the official address. The latest Eclipse version has the Maven plugin, you don't need to download this plugin

c. Unzip the Maven installation package to the local path.

d. Set environment variables.

  • Set the M2_HOME environment variable to point to the Maven installation directory.

  • Add %M2_HOME%\bin to the system path path.

e. (Optional) Set the local repository path to save a copy of the plugins and dependencies obtained from the remote repository.

Here, the path D:\maven\repository is used as an example. Find the settings.xml file in /conf and set the localRepository to D:\maven\repository

f. Result verification

Use the mvn -version command to verify whether the installation is successful. In the Windows environment, the output is as follows:

C:\Users\h00407576>mvn -version        
 Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:4        
 7+08:00)        
 Maven home: D:\soft\apache-maven-3.3.9-bin\apache-maven-3.3.9        
 Java version: 1.8.0_121, vendor: Oracle Corporation        
 Java home: C:\Program Files\Java\jdk1.8.0_121\jre        
 Default locale: zh_CN, platform encoding: GBK        
 OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

Eclipse installation

Preconditions

a. JDK has been installed.

b.Maven has been installed.

installation steps

a. Download the Eclipse installation package from the official address.

b. Install Eclipse to this machine.

c. (Optional) Unzip the plugin m2eclipse introduced in the previous Maven installation to the plugins and features directories under the Eclipse installation directory. Latest Eclipse version

with Maven plugin, don't do this

d. Start Eclipse, configure jre, maven settings and the default encoding format is utf-8.


HUAWEI CLOUD Microservice Engine CSE  ,  free for a limited time until June 30 ,  2018

Guess you like

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