模拟服务器和OpenSSL:无法加载库' netty_tcnative_windows_x86_64'

时间:2018-03-09 16:29:22

标签: java ssl netty mockserver

测试客户端HTTP(S)通信我正在使用" mock-server"。目前我想测试TLS连接,但得到以下错误:

i.n.u.internal.NativeLibraryLoader - -Dio.netty.native.workdir: C:\Users\xxx\AppData\Local\Temp (io.netty.tmpdir)
i.n.u.internal.NativeLibraryLoader - Unable to load the library 'netty_tcnative_windows_x86_64', trying other loading mechanism.
java.lang.UnsatisfiedLinkError: no netty_tcnative_windows_x86_64 in java.library.path

我的gradle依赖项:

testImplementation 'org.mock-server:mockserver:5.3.0'
testImplementation 'org.mock-server:mockserver-netty:5.3.0'
testImplementation 'io.netty:netty-tcnative-boringssl-static:2.0.7.Final:windows-x86_64' 
testImplementation 'io.netty:netty-tcnative:2.0.7.Final:windows-x86_64'

在temp文件夹中,我可以看到有问题的dll,例如:

  • netty_tcnative_windows_x86_646745663469304581179.dll
  • netty_tcnative7389825183963439904.dll

这是依赖性问题吗?我是否需要下载其他版本的netty?

0 个答案:

没有答案