File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Scala and the fly likes Netbeans & Scala Instillation probs! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Scala
Bookmark "Netbeans & Scala Instillation probs!" Watch "Netbeans & Scala Instillation probs!" New topic
Author

Netbeans & Scala Instillation probs!

Danny Morgan
Greenhorn

Joined: Jul 05, 2008
Posts: 8
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!


Regards<br /> <br />Danny
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

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.


Mohamed Sanaulla | My Blog
Danny Morgan
Greenhorn

Joined: Jul 05, 2008
Posts: 8
Thank you Mohamed Sanaulla.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans & Scala Instillation probs!