I am a beginner in Scala. I installed Scala IDE in eclipse and now I want to run my application programme. It never shows \"run as Scala application\", instead it shows \"run
I had this issue using an Eclipse Luna Scala IDE. No of the above solution made it possible to compile my Main.scala file.
package main.scala
object Main {
def main(args: Array[String]){
println("Hello, I am the main object")
}
}
The problem was the following: My project only referenced the JRE System library but no Scala library. I carried out the following steps:
Then, go to the Main.scala file that is lying somewhere in your project folder and contains your main function. If you right-click file, "Scala Application" should appear under "Run as".
Right click on the Project --> Click on Run Configurations --> In the Run Configurations window select the "Scala Application"