Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

When the Netty source code analysis note runs the example example that comes with the Netty source code, the compilation fails.

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The main sharing, in the run netty source code comes with the example, encountered problems:

The main steps are as follows:

1. Download the netty source code from git [netty-netty-4.1.6.Final]

2. Import directly into Intellij idea

3. Run echo example under example module

The following errors are reported:

Obviously, dependency packages were missing, and I wondered why netty was missing dependency packages when it was such a good framework.

Solutions:

Add dependencies to pom file of handler module

org.apache.tomcat tomcat-jni 8.5.20 org.eclipse.jetty.alpn alpn-api 1.1.3.v20160715 provided

Run again,

EchoServer

It can be compiled and run normally, as shown in the following figure:

In summary:

There should also be skepticism about good frameworks.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report