Search code examples
javawindowsscalanoclassdeffounderrorscala-ide

When exporting a Java Scala project it failed to get scala/ScalaObject


I'm working on eclipse with Scala 2.9.3 plugin installed.
I have a Scala project which work fine from the eclipse but when I export the project to "Runnable JAR File" and I try to run it I'm getting the following exception:

java.lang.NoClassDefFoundError: scala/ScalaObject

I tried all the 3 Library handling options:

  • Extract required libraries...
  • Package required libraries...
  • Copy required libraries...

All end up in the same exception.

What I need to do in order to make a standalone JAR file from my project?


Solution

  • I've used sbt-assembly plugin in the past, I found it quite easy to use.