I am trying to run some scala code in eclipse but i got stuck with a weird problem. If no errors exist, it runs fine, otherwise it just gives the error: could not find or load main class .... What may cause such an annoying problem?
package p
object Main{
def main(args: Array[String]): Unit = {
----
}
}
this snippet outputs:
Error: Could not find or load main class p.Main
I want to see something like this:
Error:(15, 5) not found: value --