This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have just downloaded the brand-new Netbeans 6.8 release, and am using the Scala plugin downloaded in file "nb-scala-6.8v1.1.0rc1.zip". My JDK version is build "1.6.0_17-b04". When I try to "clean & build" any Scala source file (even a small 5-line) "Hello world" program, the following error is given. The Scala development facility is not usable at all for any Scala project or source. init: deps-clean: Deleting directory D:\Things\ScalaNetBeans\One\build clean: init: deps-jar: Created dir: D:\Things\ScalaNetBeans\One\build\classes Compiling 1 source file to D:\Things\ScalaNetBeans\One\build\classes scala.tools.nsc.MissingRequirementError: object scala not found. at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:509) at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:43) at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:44) at scala.tools.nsc.symtab.Definitions$definitions$.UnitClass(Definitions.scala:86) at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:765) at scala.tools.nsc.Global$Run.<init>(Global.scala:620) at scala.tools.nsc.Main$.process(Main.scala:108) at scala.tools.nsc.Main$.main(Main.scala:123) at scala.tools.nsc.Main.main(Main.scala) error: fatal error: object scala not found. D:\Things\ScalaNetBeans\One\nbproject\build-impl.xml:422: The following error occurred while executing this line: D:\Things\ScalaNetBeans\One\nbproject\build-impl.xml:255: Compilation failed because of an internal compiler error; see the error output for details. BUILD FAILED (total time: 2 seconds)
This problem can be avoided by installing Scala in a directory path without embedded spaces. In my case (on Windows XP), the problem went away when I moved the Scala installation from "C:\Program Files\Scala-2.8.0" to "C:\Scala-2.8.0" The need to avoid directory paths with embedded spaces has been mentioned in other contexts (project directory, and Netbeans installation directory), but the problem appears to more pervasive, and possibly applies to directories in general.