OK I got it I have to write "scala" keyword outside of the scala terminal while trying to compile.
So instead of what I was doing which was typing "scala" to bring up the scala interpreter and then again writing scala MYSCRIPT.scala I have to skip the first step which was opening the scala interpreter.
Post can be removed.
- Mac | Scala terminal error while trying to compile
- Trying to cross compile a project to Scala 2.11 fails with "error while loading Object, Missing dependency 'object scala in compiler mirror'"
- Validation error while trying to parse a json array to List[Object] in Scala
- Compile error in scala template while passing an arraylist: Not found value
- Mac OS Intellij Error while running scala program
- FAILED DOWNLOAD error while trying to create scala jar
- Compile time error in scala Map while I put an object inside value
- getting error while trying to use scala extractors without case classes
- Getting an error message while trying to build Play Scala project in Intellij Idea Ultimate version 14.0.4
- Scala compile time error while calling a method by passing List[Record]
- Scala confusing compile time error while working with List of Tuples
- Shapeless error while trying trying to use PureConfig and Circe for scala
- Error while trying to import Array._ and import org.apache.spark.sql.functions._ in Spark Scala
- Encoder error while trying to map dataframe row to updated row
- Compilation failed: error while loading AnnotatedElement, ConcurrentMap, CharSequence from Java 8 under Scala 2.10?
- Scala compile server error when using nailgun
- UNRESOLVED DEPENDENCIES error while trying to create jar
- scala "error: io error while decoding" "with utf-8"
- Why does IDEA report "Error:scalac: error while loading Object, Missing dependency 'object scala in compiler mirror'" building scala breeze?
- Homebrew errors in Mac OS Mavericks when trying to install scala
- Scala - strange compile error (multiple overloaded alternatives of a method define default arguments)
- Scala Play 2.0. Compilation error: IO error while decoding
- Error: scalac: error while loading package, Scala signature package has wrong version; expected 5.0, found 5.2 in package.class
- WireMock error while trying to mock an HttpClient with Proxy
- org.apache.thrift.transport.TTransportException error while Reading large JSON file in zeppelin scala
- error while loading CharSequence in Scala 2.11.4 and sbt 0.12.4
- Using ListView from Scala 2.9.2 with Java 7 gives compile error
- Getting stack overflow error when trying Haskell-style lazy evaluation in Scala
- Scala cake-pattern compile error with Precog config pattern
- Scala Case class matching compile error with aliased inner types?
More Query from same tag
- scala code for regex pattern matching
- Can I "pimp my library" with an analogue of TraversableLike.map that has nicely variant types?
- How can I get the number of common edges in Spark Graphx?
- best way to implicitly convert Map of Any to Map of Class when extracting the value
- Using 'nested' types in a list in Scala
- How to replace a given item in a list?
- Cake pattern w/ akka: Providing implicit actorSystem to several layers
- Conditional Implicit Definitions Scala
- How to run Play with -feature?
- Why does Scala compiler say that contravariant type A occurs in covariant position in type >: A <: Any of type B?
- How to resolve HTTP Parameter Pollution warning?
- Implicit conversions and by-name parameters of target type
- Chaining Futures in Scala
- How to control the inferred type for bound variables in pattern matching in the presence of higher-kinded types
- java.lang.ClassCastException: models.Task cannot be cast to models.Task on Play Framework
- Spark Scala CSV Column names to Lower Case
- Spring-Boot and scala cannot find main class
- Design Issue: Trying to avoid code duplication using scala type bounds
- Setting environment variables when running Scala / SBT test suite
- Order of generators in Scala "for comprehension" affects answer
- Compare two values with Scala Spark
- Got NullPointerException, when I using SparkStreaming to consume the Kafka's messages
- java.util.Arrays.toString method is not overloaded for Strings in Scala
- How to define a KeySelector in Flink of Scala?
- Scala instance variables best practice
- unresolved dependency: org.scala-tools.sbinary#sbinary_2.9.0;0.4.0: not found
- Scala batch jobs in parallel
- scala Nil type matchs against arraybuffer
- How to add a mutable list as a column of a dataframe using withColumn function in scala
- Evaluate my forecast using a Pipeline Model