0

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)

user3408937
  • 49
  • 2
  • 9

1 Answers1

1

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.

Community
  • 1
  • 1
Himanshu Bhardwaj
  • 4,038
  • 3
  • 17
  • 36
  • i had fix few error but after i am getting anther type of error is edu.knowitall.tool.postag.Postagger: method ()V not found – user3408937 Mar 18 '14 at 10:09
  • Make sure the dependencies are pointing to the right versions. You get this error when code was compiled against X version of depedency and in CLASSPATH Y version is used, you should reconcile the same. Right now it looks to me the depedencies are messed up. Did you try to recompile to whole code, I bet you would get compile time errors too. – Himanshu Bhardwaj Mar 19 '14 at 06:25