This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Error in Netbeans running HelloWorld example

1 reply
Poperecinii Timur
Joined: 2009-02-26,
User offline. Last seen 3 years 33 weeks ago.
Hi,

Wanted to try out Lift.
1. Downloaded Netbeans 6.5
2. Downloaded plugin for scala
3. Downloaded Maven plugin
4. Putted in Libraries directory all scala JARs

tried to run my project which runs without errors in eclipse and receive some error within ant configuration

Could not load definitions from resource scala/tools/ant/antlib.xml. It could not be found.
init:
deps-jar:
...\NetBeansProjects\CalculatorScala\nbproject\build-impl.xml:404: The following error occurred while executing this line:
...\NetBeansProjects\CalculatorScala\nbproject\build-impl.xml:228: Problem: failed to create task or type scalac
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 0 seconds)



How to fix it?

Bryan
Joined: 2008-12-19,
User offline. Last seen 42 years 45 weeks ago.
Re: Error in Netbeans running HelloWorld example
Hi Poperecinii,

I just stumbled upon this same error right after I redefined my SCALA_HOME environment variable with a typo.  So, please make sure that you have defined this environment variable (and, ultimately, have defined it correctly).

HTH,
Bryan

On Sat, Mar 14, 2009 at 2:55 PM, Poperecinii Timur <monomachus85@yahoo.com> wrote:
Hi,

Wanted to try out Lift.
1. Downloaded Netbeans 6.5
2. Downloaded plugin for scala
3. Downloaded Maven plugin
4. Putted in Libraries directory all scala JARs

tried to run my project which runs without errors in eclipse and receive some error within ant configuration

Could not load definitions from resource scala/tools/ant/antlib.xml. It could not be found.
init:
deps-jar:
...\NetBeansProjects\CalculatorScala\nbproject\build-impl.xml:404: The following error occurred while executing this line:
...\NetBeansProjects\CalculatorScala\nbproject\build-impl.xml:228: Problem: failed to create task or type scalac
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 0 seconds)



How to fix it?


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland