- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala Plugin and Netbeans 6.8: scala.tools.nsc.MissingRequirementError: object scala not found
Sun, 2009-12-20, 04:37
I'm trying to use the newly released Netbeans 6.8 with the Scala plugin "nb-scala-6.8v1.1.0rc1", but am consistently getting the following error whenever I try to clean and build any Scala code. I have added the Scala jar files at the project -> properties -> library option, but that makes no difference.
I've also tried the plugin with Netbeans 6.8 rc2, but get the same error.
Has anyone successfully used Netbeans 6.8 (released version or rc2) with the latest Scala plugin?
I've also posted this issue https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans website, but have no responses yet.
I've also tried the plugin with Netbeans 6.8 rc2, but get the same error.
Has anyone successfully used Netbeans 6.8 (released version or rc2) with the latest Scala plugin?
I've also posted this issue https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans website, but have no responses yet.
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)
Sun, 2009-12-20, 11:37
#2
Re: Scala Plugin and Netbeans 6.8: scala.tools.nsc.MissingRequi
On Sunday 20 December 2009 06:37:40 Sanjay Dasgupta wrote:
> I'm trying to use the newly released Netbeans 6.8 with the Scala plugin
> "nb-scala-6.8v1.1.0rc1", but am consistently getting the following error
> whenever I try to clean and build any Scala code. I have added the Scala
> jar files at the project -> properties -> library option, but that makes
> no difference.
>
> I've also tried the plugin with Netbeans 6.8 rc2, but get the same error.
>
> Has anyone successfully used Netbeans 6.8 (released version or rc2) with
> the latest Scala plugin?
I am using the plugin during last three months with big pleasure :-)
>
> I've also posted this issue
> https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans
> website, but have no responses yet.
>
> 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.
Have you set up $SCALA_HOME? Is $SCALA_HOME/bin in your PATH?
Sun, 2009-12-20, 17:57
#3
Re: Scala Plugin and Netbeans 6.8: scala.tools.nsc.MissingRequi
I've installed the Scala "nightly build" (scala-2.8.0.r20145-b20091216020133.zip) and the Netbeans Scala plugin (nb-scala-6.8v1.1.0rc1.zip), on top of Netbeans 6.8 (release version). The attached image shows the details -- along with a source module I'm attempting to compile, and the error message.
What else can I check?
- Sanjay
On Sun, Dec 20, 2009 at 2:28 PM, Louis Botterill <chillipower.uk@gmail.com> wrote:
What else can I check?
- Sanjay
On Sun, Dec 20, 2009 at 2:28 PM, Louis Botterill <chillipower.uk@gmail.com> wrote:
Hi, I've had the latest Scala plugn working with 6.8beta and rc1/rc2 and it works fine with the release version, which is what I use now.
I don't recall needing to add jars to the project like that,
just download and unpack the plugin,
install it through the plugin manager,
probably restart the IDE
ensure scala is configured (nb -> tools -> options -> scala platforms), I'm using scala-2.8.0.Beta1-RC2 which seems to work fine
create a new scala project and add say an object with a main that println's hello world and run it and it should be fine
What version of Scala are you using with it?
Louis
2009/12/20 Sanjay Dasgupta <sanjay.dasgupta@gmail.com>
I'm trying to use the newly released Netbeans 6.8 with the Scala plugin "nb-scala-6.8v1.1.0rc1", but am consistently getting the following error whenever I try to clean and build any Scala code. I have added the Scala jar files at the project -> properties -> library option, but that makes no difference.
I've also tried the plugin with Netbeans 6.8 rc2, but get the same error.
Has anyone successfully used Netbeans 6.8 (released version or rc2) with the latest Scala plugin?
I've also posted this issue https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans website, but have no responses yet.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)
--
www.chillipower.com
http://louisbotterill.blogspot.com/
Please consider your environmental responsibility before printing this e-mail
Sun, 2009-12-20, 18:07
#4
Re: Scala Plugin and Netbeans 6.8: scala.tools.nsc.MissingRequi
Yes, I have $SCALA_HOME and $SCALA_HOME/bin set correctly, I can verify those separately from a command window.
What else can I check?
- Sanjay
On Sun, Dec 20, 2009 at 3:59 PM, Andrew Gaydenko <a@gaydenko.com> wrote:
What else can I check?
- Sanjay
On Sun, Dec 20, 2009 at 3:59 PM, Andrew Gaydenko <a@gaydenko.com> wrote:
On Sunday 20 December 2009 06:37:40 Sanjay Dasgupta wrote:
> I'm trying to use the newly released Netbeans 6.8 with the Scala plugin
> "nb-scala-6.8v1.1.0rc1", but am consistently getting the following error
> whenever I try to clean and build any Scala code. I have added the Scala
> jar files at the project -> properties -> library option, but that makes
> no difference.
>
> I've also tried the plugin with Netbeans 6.8 rc2, but get the same error.
>
> Has anyone successfully used Netbeans 6.8 (released version or rc2) with
> the latest Scala plugin?
I am using the plugin during last three months with big pleasure :-)
>
> I've also posted this issue
> https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans
> website, but have no responses yet.
>
> 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.
Have you set up $SCALA_HOME? Is $SCALA_HOME/bin in your PATH?
Sun, 2009-12-20, 18:17
#5
Re: Scala Plugin and Netbeans 6.8: scala.tools.nsc.MissingRequi
On Sunday 20 December 2009 19:50:38 Sanjay Dasgupta wrote:
> I've installed the Scala "nightly build"
> (scala-2.8.0.r20145-b20091216020133.zip) and the Netbeans Scala plugin
> (nb-scala-6.8v1.1.0rc1.zip), on top of Netbeans 6.8 (release version). The
> attached image shows the details -- along with a source module I'm
> attempting to compile, and the error message.
>
> What else can I check?
Does Tools -> Scala Platforms show something found?
Probably (being using windows) you can try to use all needed paths without
spaces.
>
> - Sanjay
>
> On Sun, Dec 20, 2009 at 2:28 PM, Louis Botterill
>
> wrote:
> > Hi, I've had the latest Scala plugn working with 6.8beta and rc1/rc2 and
> > it works fine with the release version, which is what I use now.
> >
> > I don't recall needing to add jars to the project like that,
> > just download and unpack the plugin,
> > install it through the plugin manager,
> > probably restart the IDE
> > ensure scala is configured (nb -> tools -> options -> scala platforms),
> > I'm using scala-2.8.0.Beta1-RC2 which seems to work fine
> > create a new scala project and add say an object with a main that
> > println's hello world and run it and it should be fine
> >
> > What version of Scala are you using with it?
> >
> > Louis
> >
> >
> > 2009/12/20 Sanjay Dasgupta
> >
> > I'm trying to use the newly released Netbeans 6.8 with the Scala plugin
> >
> >> "nb-scala-6.8v1.1.0rc1", but am consistently getting the following error
> >> whenever I try to clean and build any Scala code. I have added the Scala
> >> jar files at the project -> properties -> library option, but that makes
> >> no difference.
> >>
> >> I've also tried the plugin with Netbeans 6.8 rc2, but get the same
> >> error.
> >>
> >> Has anyone successfully used Netbeans 6.8 (released version or rc2) with
> >> the latest Scala plugin?
> >>
> >> I've also posted this issue
> >> https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans
> >> website, but have no responses yet.
> >>
> >> 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(Definit
> >>ions.scala:509) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions
> >>.scala:43) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Defini
> >>tions.scala:44) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.UnitClass(Definitions.sc
> >>ala:86) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:7
> >>65) at scala.tools.nsc.Global$Run.(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)
> >
> > --
> > www.chillipower.com
> > http://louisbotterill.blogspot.com/
> >
> > Please consider your environmental responsibility before printing this
> > e-mail
>
Sun, 2009-12-20, 18:57
#6
Re: Scala Plugin and Netbeans 6.8: scala.tools.nsc.MissingRequi
Thanks Andrew,
That helped! I moved the Scala install directory from "C:\Program Files\Scala-2.8.0" to "C\Scala-2.8.0" (a path without spaces) and everything seems ok now.
Thanks all for your help.
- Sanjay
On Sun, Dec 20, 2009 at 10:28 PM, Andrew Gaydenko <a@gaydenko.com> wrote:
That helped! I moved the Scala install directory from "C:\Program Files\Scala-2.8.0" to "C\Scala-2.8.0" (a path without spaces) and everything seems ok now.
Thanks all for your help.
- Sanjay
On Sun, Dec 20, 2009 at 10:28 PM, Andrew Gaydenko <a@gaydenko.com> wrote:
On Sunday 20 December 2009 19:50:38 Sanjay Dasgupta wrote:
> I've installed the Scala "nightly build"
> (scala-2.8.0.r20145-b20091216020133.zip) and the Netbeans Scala plugin
> (nb-scala-6.8v1.1.0rc1.zip), on top of Netbeans 6.8 (release version). The
> attached image shows the details -- along with a source module I'm
> attempting to compile, and the error message.
>
> What else can I check?
Does Tools -> Scala Platforms show something found?
Probably (being using windows) you can try to use all needed paths without
spaces.
>
> - Sanjay
>
> On Sun, Dec 20, 2009 at 2:28 PM, Louis Botterill
>
> <chillipower.uk@gmail.com>wrote:
> > Hi, I've had the latest Scala plugn working with 6.8beta and rc1/rc2 and
> > it works fine with the release version, which is what I use now.
> >
> > I don't recall needing to add jars to the project like that,
> > just download and unpack the plugin,
> > install it through the plugin manager,
> > probably restart the IDE
> > ensure scala is configured (nb -> tools -> options -> scala platforms),
> > I'm using scala-2.8.0.Beta1-RC2 which seems to work fine
> > create a new scala project and add say an object with a main that
> > println's hello world and run it and it should be fine
> >
> > What version of Scala are you using with it?
> >
> > Louis
> >
> >
> > 2009/12/20 Sanjay Dasgupta <sanjay.dasgupta@gmail.com>
> >
> > I'm trying to use the newly released Netbeans 6.8 with the Scala plugin
> >
> >> "nb-scala-6.8v1.1.0rc1", but am consistently getting the following error
> >> whenever I try to clean and build any Scala code. I have added the Scala
> >> jar files at the project -> properties -> library option, but that makes
> >> no difference.
> >>
> >> I've also tried the plugin with Netbeans 6.8 rc2, but get the same
> >> error.
> >>
> >> Has anyone successfully used Netbeans 6.8 (released version or rc2) with
> >> the latest Scala plugin?
> >>
> >> I've also posted this issue
> >> https://netbeans.org/bugzilla/show_bug.cgi?id=178743 to the netbeans
> >> website, but have no responses yet.
> >>
> >> 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(Definit
> >>ions.scala:509) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions
> >>.scala:43) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Defini
> >>tions.scala:44) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.UnitClass(Definitions.sc
> >>ala:86) at
> >> scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:7
> >>65) 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)
> >
> > --
> > www.chillipower.com
> > http://louisbotterill.blogspot.com/
> >
> > Please consider your environmental responsibility before printing this
>
I don't recall needing to add jars to the project like that,
just download and unpack the plugin,
install it through the plugin manager,
probably restart the IDE
ensure scala is configured (nb -> tools -> options -> scala platforms), I'm using scala-2.8.0.Beta1-RC2 which seems to work fine
create a new scala project and add say an object with a main that println's hello world and run it and it should be fine
What version of Scala are you using with it?
Louis
2009/12/20 Sanjay Dasgupta <sanjay.dasgupta@gmail.com>
--
www.chillipower.com
http://louisbotterill.blogspot.com/
Please consider your environmental responsibility before printing this e-mail