如何导入和使用 FuzzyLogic 库/包“JFML”在任何逻辑中?
我对 AnyLogic 很陌生,尤其是在向其导入外部库/包方面。 有谁知道在 AnyLogic 中使用/导入模糊java库“JFML”时我还需要做什么?我在模型依赖项中导入了 JFML-v1.2.2.jar 文件。但是,例如,如果我想对 JFML 类的某个对象执行 toString() 方法,则会出现以下错误:
Exception during discrete event execution:
javax/xml/bind/JAXBElement
Caused by: javax.xml.bind.JAXBElement
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBElement
at jfml.jaxb.ObjectFactory.createKnowledgeBaseTypeFuzzyVariable(ObjectFactory.java:510)
I'm quite new to AnyLogic, especially in importing external libraries/packages to it.
Does anyone know what else do I have to do when using/importing the fuzzy java library "JFML" in AnyLogic? I imported the JFML-v1.2.2.jar file in the Model dependencies. However, e.g. if I want to execute a toString() method for a certain object of a JFML class, there is the following error:
Exception during discrete event execution:
javax/xml/bind/JAXBElement
Caused by: javax.xml.bind.JAXBElement
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBElement
at jfml.jaxb.ObjectFactory.createKnowledgeBaseTypeFuzzyVariable(ObjectFactory.java:510)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据这个链接,它不是对于普通 Java IDE 来说是简单的解决方案,这意味着在 AnyLogic 中更加困难。
我可以建议的是在此处下载
jaxb-runtime
https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime/2.3.1和jakarta.xml.bind-api 这里 https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api/4.0.0-RC3
并为它们添加依赖项,这与添加其他库的原因相同。
它应该有效
According to this link it is not a simple solution for normal Java IDEs which means that is even more difficult in AnyLogic.
What I can suggest is to download
jaxb-runtime
here https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime/2.3.1and the jakarta.xml.bind-api here https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api/4.0.0-RC3
And add them a dependencies, same why you added the other libraries.
it should work