Scala: Error on SBT | Executing in Windows | Scala 2.12.4

sbt

#1

sbt “run-main orderRevenue 2”

where orderRevenue is main class

JAR Path: S:\Study\Hadoop\Udemy\Spark\Scala\Code\Projects\IJDemo\target\scala-2.12\ijdemo_2.12-0.1.jar

Error:
[info] Set current project to IJDemo (in build file:/S:/Study/Hadoop/Udemy/Spark/Scala/Code/Projects/IJDemo/)
[error] Expected ID character
[error] Not a valid command: run-main
[error] Expected project ID
[error] Expected configuration
[error] Expected ‘:’
[error] Expected key
[error] Not a valid key: run-main (similar: runMain, bgRunMain, run)
[error] run-main orderRevenue 2
[error]


#2

is your issue resolved… I am getting the same error when I run in my Mac.

[error] Expected ID character
[error] Not a valid command: run-main
[error] Expected project ID
[error] Expected configuration
[error] Expected ‘:’
[error] Expected key
[error] Not a valid key: run-main (similar: runMain, bgRunMain, fgRunMain)
[error] run-main OrderRevenue 2
[error] ^


#3

The issue is resolved now… I gave following command instead…

sbt “runMain ObjectRevenue 2”


#4