Using the Annotation Processor - IDE - NetBeans
8.4.2.3. NetBeans Starting with version 6.9, also the NetBeans IDE supports using annotation processors within the IDE build. To do so, do the following: Right-click your project, choose "Properties" Go to "Libraries", tab "Processor", and add the following two JARs: validation-api-1.0.0.GA.jar hibernate-validator-annotation-processor-4.1.0.Final.jar Go to "Build - Compiling", select "Enable Annotation Processing" and "Enable Annotation Processing in Editor". Add the annotation processor by specifying its fully qualified name org.hibernate.validator.ap.ConstraintValidationProcessor Any constraint annotation problems will then be marked directly within the editor: