Scala and Netbeans IDE
1. currently using Netbeans 7.3.1
2. Downloads Scala from its official website, version scala-2.10.3.tgz
extracts scala-2.10.3.tgz to /usr/local/scala-2.10.3
3. Open netbeans.conf file, it locates at /usr/local/netbeans-7.3.1/etc/netbeans.conf on my Fedora.
4. vim netbeans.conf and search keyword "netbeans_default_options", and then it looks like below after scala.home is added:
netbeans_default_options="--laf Nimbus -J-Dscala.home=/usr/local/scala-2.10.3 -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"
The highlighted part is the absolute path to Scala.
5. Restarts Netbeans and try to run your Scala HelloWorld project, it should work!