java - I have to compile hello.scala which has a import command "org.scala._" -
i know folder located, how run hello.scala
terminal
i doing scala hello.scala
, generates error
/users/username/desktop/hello/hello.scala:1: error: illegal start of definition package org.scala ^ 1 error found
how can run program?
include package name when using scala
command , run against class file instead of source code
scala org.scala.hello
like java, scala naming conventions indicate classes start initial uppercase letter classes, e.g. hello
Comments
Post a Comment