Zookeeper source is compiled with Ant for Eclipse Engineering-reproduced

Source: Internet
Author: User
Tags zookeeper

Original address: http://www.it165.net/os/html/201411/10142.html

Zookeeper GitHub is: https://github.com/apache/zookeeper

Unzip, open cmd, switch to the root directory of the zookeeper source (there is a build.xml file below), then enter the command > Ant eclipse

The following interface prompts the compilation to succeed:

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 is compiled with Ant for Eclipse Engineering-reproduced

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.