Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans & Scala Instillation probs!

 
Danny Morgan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All.

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.

I'm using Ubuntu 10.04

Can someone help please.

Thanks!
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Danny Morgan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mohamed Sanaulla.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic