我将以下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
更多推荐
发布评论