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?

有帮助吗?

解决方案

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).

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