Just going through the sample Scala code on Scala website, but encountered an annoying error when trying to run it.
Here\'s the code: http://www.scala-lang.org/node/
run "eclipse -clean -refresh" from command line. This fixed the issue for me when all other solutions failed.
Just make sure that the folder you work in is added to the built path:
right-click
your folder --> build Path
--> Use as source Folder
and it should now find main
therein.
What you should do is, create a Java Project, but make sure you put this file in the package file of that project, otherwise you'll encounter same error.
I have this problem too after I changed the source folder. The solution that worked for is just editing the file and save it.
You can try to run the main function from the outline side bar of eclipse.
File >> Import >> Existing Projects into Workspace >> Select Archive Filed >> Browse and locate file >> Finish. If its already imported some other way delete it and try it that way. I was having the same problem until i tried that.