在运行时使用我的kotlin项目,我收到以下错误:
java.lang.NoClassDefFoundError: com/julianjarecki/latextemplates/lib/jtwig/RequireNodeParser
at com.julianjarecki.latextemplates.lib.jtwig.RequireNodeParserProvider.<init>(RequireNodeParserProvider.kt:8)
at com.julianjarecki.latextemplates.lib.jtwig.RequireExtension.configure(RequireExtension.kt:11)
at org.jtwig.environment.EnvironmentFactory.create(EnvironmentFactory.java:60)
at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate.getLatexRequireEnvironment(LatexParser.kt:76)
at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate.access$getLatexRequireEnvironment$p(LatexParser.kt:68)
at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate$template$2.invoke(LatexParser.kt:73)
at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate$template$2.invoke(LatexParser.kt:68)
at com.julianjarecki.latextemplates.lib.UpdatableLazy.getValue(UpdatableLazy.kt:17)
at com.julianjarecki.latextemplates.lib.jtwig.LatexTemplate.getTemplate(LatexParser.kt)
at com.julianjarecki.latextemplates.view.MainView$root$1$4$1$1$2.invoke(MainView.kt:133)
at com.julianjarecki.latextemplates.view.MainView$root$1$4$1$1$2.invoke(MainView.kt:35)
at tornadofx.NodesKt$onDoubleClick$1.handle(Nodes.kt:484)
at tornadofx.NodesKt$onDoubleClick$1.handle(Nodes.kt)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
事实上,当我查看我的buil文件夹时,RequireNodeParser.class并不是它应该的位置。 RequireNodeParserProvider中引用了这个类,如下所示:
package com.julianjarecki.latextemplates.lib.jtwig
import org.jtwig.parser.addon.AddonParserProvider
import org.jtwig.parser.parboiled.node.AddonParser
import com.julianjarecki.latextemplates.lib.jtwig.RequireNodeParser
class RequireNodeParserProvider : AddonParserProvider {
override fun keywords(): MutableCollection<String> = mutableListOf(RequireKeywords.REQUIRE.token)
override fun parser(): Class<out AddonParser> = RequireNodeParser::class.java
}
我如何开始调试此问题?
编辑1(ClassNotFoundException原因的Stacktrace):