Netty GitHub Import Eclipse

Source: Internet
Author: User

Recently saw Netty framework after a deep study of the idea, but a variety of books material is too little, seemingly only a netty in action English version can be counted on the reference, the others are not recommended to everyone. So the best information is the official website information. But Netty is a set of open-source frameworks, all of which are on GitHub, including rich example packages, so it's quick to learn or just look at examples and code.

First, GitHub's address: Https://github.com/netty/netty

Then there are some guidelines for installation: http://netty.io/wiki/setting-up-development-environment.html (this should be the most critical part)

It is recommended to use the IntelliJ idea environment, I use eclipse here.

There are a lot of articles on Eclipse+git's network, and there's no more talking about it. The key steps are as follows:

1.clone Project

2. After the project has been pulled down there will be a working directory, do not import the working directory directly, otherwise you have to configure the. Project and. classpath files, which is cumbersome.

3. Import the clone down project directly into eclipse in the MAVEN project format.

Theoretically, all of the above 3 steps have been completed, but the Netty environment is not yet complete. Currently Netty's master has reached 5.x, and the official MAVEN management is still using the JDK6 version, so it will report inexplicable errors when install. The official solution is as follows:

Set up Eclipse with M2E and Java 7
  1. Download Os-maven-plugin and put it into <ECLIPSE_HOME>/plugins directory to work around the problem where M2E does isn't evaluate an Extensio n specified in our pom.xml . (unlike its name, it's both a Maven plugin and an Eclipse plugin.)
  2. Import the project via the ' File, import ...-Existing Maven Projects ' menu.
  3. Netty Project Maven pom.xml settings dictate use of the Java SE 1.6, while implicitly using Java 7 (1.7) features if present. This could result in compilation errors in Eclipse. There is ways to work around this problem:
    1. Look in the ' Window--Preferences-Installed JRE ' menu:
      • Make sure the Java 7 installation available under ' Installed JRE '
      • Map This Java 7 installation onto Java 6: ' Installed JRE-execution Environments-Java SE 1.6 '
    2. Alternatively, Java 7 JRE can is selected on per-project basis for each Netty module.

To this step basically netty the development environment has been set up, the rest is to follow the example module run it, of course, want to change the source code is no problem, play it casually

Netty GitHub Import Eclipse

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.