JAVA-CTPAPI
JAVA-CTPAPI copied to clipboard
Demo启动即报错 java.lang.NoSuchMethodError
Exception in thread "main" java.lang.NoSuchMethodError: SwigDirector_CThostFtdcMdSpi_OnRspQryMulticastInstrument
at ctp.thostapi.thosttraderapiJNI.swig_module_init(Native Method)
at ctp.thostapi.thosttraderapiJNI.
俺也一样
应该是 dll版本与它这个不兼容导致的。 如果用不上这个方法,可以从反反编译一份java代码,然后从java源代码中删除这个方法,然后重新编译到jar。