title: Unable to access current millisecond time in scala using java.lang.System.currentTimeMillis();
body: <p>When I use below code in scala I get a runtime exception : </p>
  
  <p>java.lang.NoSuchMethodError: main
  Exception in thread "main" </p>
  
  <pre><code>object Driver {
  
      def main(args:Array[String]) = {
  
        java.lang.System.currentTimeMillis();
  
      }
  
  }
  </code></pre>
  
  <p>But when I remove java.lang.System.currentTimeMillis(); the main method is found.</p>
  
  <p>Why is this ?</p>