I'm starting to use Wolfram Workbench 2 to develop a Mathematica package. For the first time I tried "Documentation - Build" under the "Application Tools" but got fatal errors:

BUILD FAILED /Users/[...]/docbuild.xml:132: The following error occurred while executing this line: /Users/[...]/docbuild.xml:90: taskdef A class needed by class com.wolfram.jlink.util.MathematicaTask cannot be found: org/apache/tools/ant/Task

This is with Mathematica 9.0.0.0 on a Mac with OS 10.9.

Any idea on what's wrong here?

  • I would guess that you don't have ant installed properly. – halirutan Jun 2 '14 at 17:21
  • Chris, did you try to create documentation and build the NumericalAnalysis package bundled with WB 2.0 ?This package comes with documentation. See if you get the same error with it. If yes, then the problem lies in your WB installation, overwise the problem is perhaps in the way you wrote the documentation. Also: do you get other messages? Normally WB is very verbose, telling you about every step it is doing. Is there anything that went well during the build? – magma Jun 3 '14 at 13:42
  • Thanks for the idea. Although the problem fixed itself (see my answer below), I couldn't locate the NumericalAnalysis package you mentioned. – Chris K Jun 4 '14 at 13:31
  • @ChrisK the NumericalAnalysis package should be available on the WB site under Examples. You probably have to download it – magma Jun 5 '14 at 11:26
up vote 1 down vote accepted

I tried again this morning after restarting Workbench and it worked fine this time. Mysterious!

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.