1. Go to github to download the source code: https://github.com/apache/zookeeper
2. Use ant to compile the source code into an eclipse project:
Solve the problem of ant eclipse ant eclipse execution failure:
get src="http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2"
Change to the following address
get src="http://ufpr.dl.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2"
3. Import the idea, and then generate the jar package from the bulid source code: