When I use the code below in scala, I get an exception at runtime:
java.lang.NoSuchMethodError: main Exception in thread "main"
object Driver { def main(args:Array[String]) = { java.lang.System.currentTimeMillis(); } }
But when I delete java.lang.System.currentTimeMillis (); found the main method.
Why is this?
source share