This page is no longer maintained — Please continue to the home page at

Stumbles on first steps, trying to run from Netbeans

No replies
Kenneth McDonald
Joined: 2009-01-11,
User offline. Last seen 42 years 45 weeks ago.

I'm trying to run the "default" scala app from Netbeans:

* Main.scala
* To change this template, choose Tools | Template Manager
* and open the template in the editor.

package financial

object Main {

* @param args the command line arguments
def main(args: Array[String]) = {
println("Hello, world!")


However, I'm getting the error message:

Could not load definitions from resource scala/tools/ant/antlib.xml.
It could not be found.
/Users/Ken/Projects/Financial/nbproject/build-impl.xml:401: The
following error occurred while executing this line:
/Users/Ken/Projects/Financial/nbproject/build-impl.xml:225: 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 / declarations have taken
BUILD FAILED (total time: 0 seconds)

Did the ant file somehow fail to be created? My understanding was that
it was automatically maintained.
Any help most appreciated.


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