Scala plugin problem

Answered

I have installed Scala plugin and sbt executer in IntelliJ.
I have created a new Scala project and it created a build.sbt file.
In the project setting/Libraries I see a reference to the SBT I have on my computer.
I created a new Scala class with the following code:

class RunMe {
 def main(args: Array[String]): Unit = {
    println("Hello from main of class")
  }
}

I can't seem to find a new type of run configuration to create for the scala class.
I don't see the green play button in the left column (IntelliJ Left Gutter) What am I missing?

How can I configure a run configuration in the code?

best gay porn collection ever https://gayfucktube.name/

 

 

 

0
1 comment

Hello,

Your main Scala class should look like this:

object RunMe {
 def main(args: Array[String]): Unit = {
    println("Hello from main of class")
  }
}

An object is similar to a class, but you specifically use it when you want a single instance of that class.

See this post and this documentation article for more information.

0

Please sign in to leave a comment.