Zookeeper source compiled for Eclipse Engineering (Win7 ant compilation)

Source: Internet
Author: User
Tags zookeeper

Objective

Zookeeper is Yahoo's. Use ant for software building.

A journey begins with a journey. To see the source of the first step is to download the source code and import an IDE tool.

Ant

http://ant.apache.org/

Windows:

Download ant, Extract to hard disk, such as C:\Work\apache-ant-1.9.7, add ant_home=c:\work\apache-ant-1.9.7 to environment variable, add%ant_home%\bin in Path Then enter ant-version at the command prompt, and if the ant version is correctly prompted, the ant configuration succeeds.

ANT requires Java support.

Mac:

Download ant, Extract to hard disk, such as/work/apache-ant-1.9.7, edit environment variable/etc/profile, add ant_home=/work/apache-ant-1.9.7,path=/work/ Apache-ant-1.9.7/bin: $PATH, then load the environment variable source/etc/profile, run Ant-version,ok.

ZooKeeper

http://zookeeper.apache.org/

Download zookeeper, extract to the hard disk, such as C:\Work\zookeeper-3.4.8, and then to this directory, the ant Eclipse command, Ant will build an Eclipse project based on the build.xml in this directory.

After the build, there will be more project files for eclipse in this directory, such as. Project,.classpath.

OK, let's start with a pleasant zookeeper source tour.

Then open Eclispe, whatever version, choose Import, type is the existing Eclispe project.

Click Done, but found that my source has several errors, but the type is the same, are cannot switch on a value of type XXX:

On the web, it's about the JDK version that the project file uses to compile, and you need to switch JDK 7 to JDK 6:

In the imported Zookeeper project, right click-"properties-" Java Compiler, the Compiler compliance level switch to 1.6:

This error will disappear, the following can start to enter the real zookeeper source of the tour!

Zookeeper source compiled for Eclipse Engineering (Win7 ant compilation)

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.