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)