0

If I create a new Scala project in the Eclipse Scala IDE, my code compiles and runs. However, when I import an existing project, my code doesn't compile (no class files are generated) and I get a NoClassDefFoundError in the console. Any ideas what could cause this? Do I need additional software?

om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
MaVe
  • 1,715
  • 5
  • 21
  • 29
  • Classically it means [there are some jar missing](http://stackoverflow.com/q/17773595/298389) -- it may be either one of your dependencies or scala-lib.jar itself. The reason depends on the actual NCDFE error message -- put it there so we could say you proper option. – om-nom-nom Oct 25 '13 at 13:49
  • 1
    Thanks, I found the problem; apparently, there were remaining problems in other projects and since the original project depended on this, these needed to be fixed first. – MaVe Oct 25 '13 at 14:10

1 Answers1

0

As mentioned in comments, this is often the symptom of missing dependencies in your imported project, either jars or other projects (which should be imported and buildable in the IDE).

Community
  • 1
  • 1
Francois G
  • 11,957
  • 54
  • 59