java.lang.NoSuchMethodException:找不到类com.install4j.api.context.OverwriteMode的构造函数

时间:2016-04-14 10:29:47

标签: java

我想设置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)

...

如何解决此问题。

1 个答案:

答案 0 :(得分:0)

您是否正在尝试为OverwriteMode调用构造函数?

你应该使用枚举常量:OverwriteMode.ALWAYSOverwriteMode.NEVER,...(在链接页面上找到它们)