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
In Scala 2.9.1, you can simply create a .java file like this to be able to make use of Eclipse's Create Runnable JAR functionality:
public class ScalaRunner {
public static void main(String[] args) {
Main.main(args);
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With