我正在实现java应用程序,以便通过C++ JNI bridge与windows dll文件通信。在某种程度上,由于以下错误,我的java应用程序被冻结了。
java.lang.NoSuchMethodException: java.lang.System.getCallerClass()
at java.lang.Class.getDeclaredMethod(Class.java:2130) ~[na:1.8.0_121]
at com.jniwrapper.Library.unloadNativeCode(SourceFile:181) ~[jniwrap-3.8.4.jar:na]
at com.jniwrapper.NativeResourceCollector.d(SourceFile:252) [jniwrap-3.8.4.jar:na]
at com.jniwrapper.NativeResourceCollector.a(SourceFile:77) [jniwrap-3.8.4.jar:na]
at com.jniwrapper.NativeResourceCollector.c(SourceFile:22) [jniwrap-3.8.4.jar:na]
at com.jniwrapper.n.run(SourceFile:141) [jniwrap-3.8.4.jar:na]发布于 2019-07-30 19:18:44
这种方法是removed in JDK8,而在JDK7中是still there。
由于jniwrapper是商业产品,您应该向他们索要更新版本。在the release notes中,3.10版应该可以做到这一点。
https://stackoverflow.com/questions/57269747
复制相似问题