File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans & Scala Instillation probs!

 
Danny Morgan
Greenhorn
Posts: 8
  • 0
  • 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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mohamed Sanaulla.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic