我想设置Geneious程序,但我得到以下异常错误:
Exception:
java.lang.NoSuchMethodException: No constructor for class com.install4j.api.context.OverwriteMode found
at com.install4j.runtime.xmldecode.Handler.endElement(Unknown Source)
at com.install4j.runtime.xmldecode.SaxOutputter.endElement(Unknown Source)
at com.install4j.runtime.xmldecode.SaxOutputter.element(Unknown Source)
at com.install4j.runtime.xmldecode.SaxOutputter.element(Unknown Source)
at com.install4j.runtime.xmldecode.SaxOutputter.element(Unknown Source)
at com.install4j.runtime.xmldecode.SaxOutputter.element(Unknown Source)
at com.install4j.runtime.xmldecode.SaxOutputter.output(Unknown Source)
at com.install4j.runtime.xmldecode.XMLDecoder.initialize(Unknown Source)
at com.install4j.runtime.xmldecode.XMLDecoder.readObject(Unknown Source)
at com.install4j.runtime.installer.config.AbstractBeanConfig.instantiateBean(Unknown Source)
...
如何解决此问题。
答案 0 :(得分:0)
您是否正在尝试为OverwriteMode调用构造函数?
你应该使用枚举常量:OverwriteMode.ALWAYS
,OverwriteMode.NEVER
,...(在链接页面上找到它们)