我已经开发了一个工作的Cooja模拟,它使用1个天空微尘(对于RPL边界路由器,不能与cooja微尘一起工作)和30个Cooja微尘。我使用ant big_mem运行cooja。模拟工作正常,然后我保存了它。在退出cooja之后,我尝试重新使用它,但我总是得到以下错误:
se.sics.cooja.GUI$SimulationCreationException: Mote type creation error: Error when creating corecomm instance: Lib4
at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3428)
at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3340)
at se.sics.cooja.GUI.doLoadConfig(GUI.java:2397)
at se.sics.cooja.GUI$4.run(GUI.java:636)
at java.lang.Thread.run(Thread.java:745)
Caused by: se.sics.cooja.MoteType$MoteTypeCreationException: Error when creating corecomm instance: Lib4
at se.sics.cooja.CoreComm.createCoreComm(CoreComm.java:343)
at se.sics.cooja.contikimote.ContikiMoteType.doInit(ContikiMoteType.java:385)
at se.sics.cooja.contikimote.ContikiMoteType.configureAndInit(ContikiMoteType.java:348)
at se.sics.cooja.contikimote.ContikiMoteType.setConfigXML(ContikiMoteType.java:1389)
at se.sics.cooja.Simulation.setConfigXML(Simulation.java:681)
at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3410)
... 4 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at se.sics.cooja.CoreComm.createCoreComm(CoreComm.java:334)
... 9 more
Caused by: java.lang.UnsatisfiedLinkError: se.sics.cooja.corecomm.Lib4.init()V
at se.sics.cooja.corecomm.Lib4.init(Native Method)
at se.sics.cooja.corecomm.Lib4.<init>(Lib4.java:50)
... 14 more我该怎么解决它呢?谢谢你,丹尼尔
发布于 2015-02-20 04:04:18
我发现了问题所在。有必要删除模拟为解决问题而创建的obj_cooja文件夹
https://stackoverflow.com/questions/28548093
复制相似问题