Slinky
Slinky

Reputation: 5832

Understanding a sbt error when executing the package command

Can someone help me understand why this command:

$ sbt package clean

Results in the following error?

[error] [/Users/slinky66/ScalaApps/WordCount2/wordcount2.sbt]:1: ';' expected but '.' found.

The .sbt file

## wordcount2.sbt
name := "Word Count Project"
version := "1.0"
scalaVersion := "2.12.1"
libraryDependencies +="org.apache.spark" %% "spark-core" % "2.1.0"

Thanks

Upvotes: 0

Views: 30

Answers (1)

rogue-one
rogue-one

Reputation: 11587

remove the ## wordcount2.sbt from the .sbt file. comments must begin with // not with #. ie it should be

// wordcount2.sbt
name := "Word Count Project"
version := "1.0"
scalaVersion := "2.12.1"
libraryDependencies +="org.apache.spark" %% "spark-core" % "2.1.0"

Upvotes: 1

Related Questions