You can maintain a separate classpath for building and running JUnit tests, regardless of whether you set it in your own Ant build scriptor in NetBeans IDE 4.0. Ant 構築スクリプトや NetBeans IDE 4.0 での設定に関係なく、JUnit テストを構築、実行するためのクラスパスを別に設定することができます。 - NetBeans