Seasonings
When you create a jar from your classes, perhaps the dependencies are not included in this jar. When starting this jar, you need to place jars containing dependencies from the class path (with the -cp switch in java). The most important dependency is the jar of scala-library . Of course, knowing that NoClassDefFound was not found will help.
Sbt
When creating with sbt, maybe it doesnβt have any dependencies that you manually added to the Eclipse project? (Note: I did not use sbt).
Maven
I found that the clearest and most painless way is to go with maven only, or perhaps maven + Intellij Idea (free community edition) + Scala plugin. It works very smoothly.
For maven, you need to adapt the available Scala archetype a bit, because the libraries to which it refers are not the latest version, but other than that, it is very good.
Here is the pom.xml I am using: https://gist.github.com/1096870
Use the standard maven folder structure (the original root is src / main / scala), and then the mvn package creates jar fine.
ron
source share