- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Error in Netbeans running HelloWorld example
Sat, 2009-03-14, 23:36
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?
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?
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: