It's not a secret anymore!
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

Netbeans & Scala Instillation probs!

Danny Morgan

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.


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

Joined: Sep 08, 2007
Posts: 3151

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

Joined: Jul 05, 2008
Posts: 8
Thank you Mohamed Sanaulla.
Don't get me started about those stupid light bulbs.
subject: Netbeans & Scala Instillation probs!
It's not a secret anymore!