来自netty git repository的netty安全聊天示例中的编译错误(Compilation error in netty secure chat example from netty g

编程入门 行业动态 更新时间:2024-10-22 09:25:55
来自netty git repository的netty安全聊天示例中的编译错误(Compilation error in netty secure chat example from netty git repository)

我将以下netty示例地址中的所有类复制到我的java项目中: https : //github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/securechat

我从这个文件中添加了所有的jar(没有包含源代码的jar): http : //dl.bintray.com/netty/downloads/netty-4.0.27.Final.tar.bz2

但是我的类中有编译错误,因为在上面地址的jar中找不到SslContextBuilder类。

您是否会告诉我是否跳过包含SslContextBuilder类的jar或者是使用SslContextBuilder类的正确上下文来处理安全聊天的代码示例。

最诚挚的问候,Aurelian

I copied into my java project all the classes from the following netty example address: https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/securechat

and I added all the jars (without the jars that contain source code) from this file: http://dl.bintray.com/netty/downloads/netty-4.0.27.Final.tar.bz2

However I have compilation errors in my classes because the SslContextBuilder class cannot be found inside the jars from the above address.

Would you tell me if i skipped a jar which contains the SslContextBuilder class or which is the right context to use the SslContextBuilder class in order to work the examples of code for the secure chat.

Best Regards, Aurelian

最满意答案

如果要运行4.0.27.Final的示例,则需要确保使用作为发布标记一部分的示例。

所以使用这些:

https://github.com/netty/netty/tree/netty-4.0.27.Final/example/src/main/java/io/netty/example

If you want to run examples with 4.0.27.Final you need to ensure you use the examples which are part of the release tag.

So use these:

https://github.com/netty/netty/tree/netty-4.0.27.Final/example/src/main/java/io/netty/example

更多推荐

本文发布于:2023-08-05 05:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1427235.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:示例   错误   git   repository   netty

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!