I'm a new to Scala. I tried to run the following program using NetBeans 6.8:
package scalaapplication1
object Main {
/**
* @param args the command line arguments
*/
def main(args: Array[String]): Unit = {
println("Hello, world!")
}
}
and I got the following error message:
You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
Scala installation directory.
You need to add Scala platform- in other words tell Netbeans where to look for the Scala platform. You can do that by navigating from menu Tools-> Scala Platforms and then Add Platform. Here you need to choose your Scala installation on your machine, which means you should have installed Scala before on your machine.