Hello … I am a beginner in Scala and I apologize for the question. I created a class to print “Hello World” and gave an error that I can not solve. can anybody help me?
my code:
object Teste {
def main(args: Array[String]){
print(“Hello World”)
}
}
the error:
Exception in thread “main” java.lang.NoSuchMethodError: scala.tools.nsc.interpreter.ILoop.main(Lscala/tools/nsc/Settings;)V
at org.jetbrains.plugins.scala.compiler.rt.ConsoleRunner.main(ConsoleRunner.java:64)
Process finished with exit code 1