netbeans5.5: attempt to compile a single file causes package compilation

Hi,

i have two different (Java Class Library) projects- say A and B. None of them is finished. However, i want to run a test on A (TestA.java). I have instructed project A to include B.jar (Right Click-> Propertied, etc), since TestA.java includes files from project B.

Trying to compile/run the TestA.java, i get compilation errors from a bunch of packages NOT included (imported) in the TestA.java.

Is there a way not to include the whole project B, the whole jar-since this probably causes the problem?

Thnx

[544 byte] By [uiga] at [2007-10-3 11:51:35]
# 1

If you don't need that stuff to compile to run your tests, you can as well ignore the compilation error (assuming Netbeans still creates the JAR - why don't you ask the Netbeans User Support Mailing List?).

The question is rather: why do you have non-compiling code? Non-fully implemented, okay, but non-compiling?

CeciNEstPasUnProgrammeura at 2007-7-15 14:25:40 > top of Java-index,Java Essentials,Java Programming...