hi i am getting an error while running the OpenIE scala code in eclipse

https://github.com/knowitall/openie

Exception in thread "main" java.lang.NoSuchMethodError: edu.knowitall.tool.postag.Postagger: method ()V not found at edu.knowitall.tool.postag.ClearPostagger.(ClearPostagger.scala:15)

有帮助吗?

解决方案

Not familiar with scala project structure but looks similar to maven one.

Two points,

edu/knowitall/openie/openIECli, I see the class name is wrong should be edu/knowitall/openie/OpenIECli (case-sensitivity) . Although it should be a typo error, but better to check this one too.

which class are you trying to execute.

Also, you can refer to this link: How to solve java.lang.NoClassDefFoundError?

I suspect some problem with the build path, but need more details to look into.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top