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.
Product Version: NetBeans IDE Dev (Build 200710230000) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) Userdir: /tmp/ud ------------- - create anagram game sample - invoke Debug main project (c-f5) - project is not built - init: deps-jar: Created dir: /home/tomas/NetBeansProjects/AnagramGame5/build/classes compile: Exception in thread "main" java.lang.NoClassDefFoundError: com/toy/anagrams/ui/Anagrams Java Result: 1 debug: BUILD SUCCESSFUL (total time: 0 seconds) - invoking "debug" target using the subnode of build.xml node works fine
The problem is that the project wasn't compiled before the debug was called and the "Track Java Dependencies" is off. The javac task verbose from ant fileset: Setup scanner in dir /home/tom/NetBeansProjects/01/AnagramGame/src with patternSet{ includes: [nothing, whatsoever] excludes: [] } No sources found.
You have to build the project first when the checkbox is off. See issue #118079. If it tries to build everything before debugging, debugging becomes slower when you don't in fact need to build anything. Probably in this case since it is the first action run on the project, the IDE should ask for a complete build to be sure.
Now behaves specially the first time a project is built or run in a given IDE session: always considers all files, ignoring any in-IDE modifications. Checking in src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java; /shared/data/ccvs/repository/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java,v <-- J2SEActionProvider.java new revision: 1.67; previous revision: 1.66 done Checking in test/unit/src/org/netbeans/modules/java/j2seproject/J2SEActionProviderTest.java; /shared/data/ccvs/repository/java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEActionProviderTest.java,v <-- J2SEActionProviderTest.java new revision: 1.23; previous revision: 1.22 done
*** Issue 119949 has been marked as a duplicate of this issue. ***
*** Issue 119645 has been marked as a duplicate of this issue. ***
thanks. verified in #20071029