This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [50cat] Adding dependency to Ant causes compilation to fail with bizarre error message | ||
---|---|---|---|
Product: | apisupport | Reporter: | misterm <misterm> |
Component: | Harness | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
misterm
2006-01-06 19:04:35 UTC
Adding a dependency to Execution API, that includes org.openide.execution.ExecutorTask, solves the problem but I doubt most users will be able to figure out that. Under Mustang I just get (after adding a dep on org.openide.filesystems for the first param) Compiling 1 source file to /tmp/test71121/build/classes /tmp/test71121/src/org/yourorghere/test71121/X.java:23: cannot access org.openide.execution.ExecutorTask class file for org.openide.execution.ExecutorTask not found public class X { 1 error /space/nb/curr/harness/common.xml:131: Compile failed; see the compiler error output for details. Which looks fine to me. Has nothing to do with the harness or API Support; it's what the compiler tells you when you are missing some JARs in your classpath which are implicitly needed by some Java code you wrote (even if you did not explicitly mention them). Apparently there is a compiler bug in 1.4 and 1.5 (missing message key). It does not appear in 1.6. Feel free to file it on bugs.sun.com against JDK 1.5 (doubtful it would be fixed for 1.4.2_xx but for 5.0_uxx it is likely). |