Can anyone tell me how I can create a runnable JAR file from a Scala program using Eclipse and Scala 2.9.x ?
A quick Google brings up results like this ..
http://garyboone.com/2009/06/creating-single-file-runnable-jars-in-scala-and-eclipse/
Which uses a Java class to call the Scala main however it doesn’t seem to work with Scala 2.9.
Thanks for your time.
Ian
If, by chance, you’re using sbt to build then you can use the assembly-sbt plugin. We use this at Yammer to build fat JARs of our infrastructure services. We’re (gradually) switching over to use maven and the shade plugin. I believe shade does a slightly more intelligent job of merging JARs than assembly-sbt does. However, we’ve had great success so far with assembly-sbt.