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.
I have three projects: A, B and C. A has B as one of its libraries; and B has C as its library. The problem is that the IDE will not allow me to use classes from C in project A showing errors, while it can be compiled successfully. -- NetBeans IDE Dev (Build 200703251800) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Windows XP version 5.1 running on x86 ru_RU (nb); Cp1251
You need to add C to A's runtime classpath, at a minimum, or to its compile-time classpath if it additionally needs to compile against classes in C directly. NB does not currently do this for you automatically - see issue #47507. (Project A needs to compile against C if it explicitly refers to any classes in C by name; or if its bytecode would, e.g. by calling a method defined in C on a C-class-valued return value of some method in B. Unfortunately the Java language spec does not precisely define the corner cases here and the precise behavior may be compiler-specific.) I don't know why the error stripe in NB would display different results than Ant, but if you can reproduce with a minimal test case, please reopen as a P3 with details. *** This issue has been marked as a duplicate of 47507 ***
Verified duplicate.