How to install Maven, Ant, and Protoc in Windows

Source: Internet
Author: User

How to install Maven, Ant, and Protoc in Windows

1. Install ant and maven

(1) first download the ant and maven installation packages.

Apache-ant-1.9.4-bin.zip

Apache-maven-3.2.5-bin.zip

(2) Configure Environment Variables

Add Environment Variables

ANT_HOME = E: \ sion Sion-software \ apache-ant-1.9.4-bin \ apache-ant-1.9.4

MAVEN_HOME = E: \ sion Sion-software \ apache-maven \ apache-maven-3.2.5

Path = % ANT_HOME % \ bin; % MAVEN_HOME % \ bin

(3) check whether the verification is successful

Ant-version

Mvn-version

Ii. Install protoc

1 first download protobuf-2.5.0.tar.gz and protoc-2.5.0-win32.zip two packages. Decompress the files to their respective directories.

2.copy protoc.exe from protoc-2.5.0-win32to c: \ windows \ system32.

3.copy the protoc.exe file to the decompressed XXX \ protobuf-2.5.0 \ src directory.

4. Go to the XXX \ protobuf-2.5.0 \ java directory

Execute the maven package command to edit the package generation protobuf-java-2.5.0.jar file (in the target directory ).

Verification:

Protoc -- version

Libprotoc 2.5.0

Maven official guide _ Chinese full version clear PDF

Maven 3.1.0 release, Project Build Tool

Install Maven in Linux

Maven3.0 configuration and simple use

Set up sun-jdk and Maven2 in Ubuntu

Get started with Maven

This article permanently updates the link address:

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.