Using the Annotation Processor- Command Line Builds - javac
8.4.1.1. javac When compiling on the command line using javac, specify the following JARs using the "processorpath" option: validation-api-1.0.0.GA.jar hibernate-validator-annotation-processor-4.1.0.Final.jar The following listing shows an example. The processor will be detected automatically by the compiler and invoked during compilation. Example 8.1. Using the annotation processor with javac javac src/main/java/org/hibernate/validator/ap/demo/Car.java \ -cp /path/to/validation-api-1.0.0.GA.jar \ -processorpath /path/to/validation-api-1.0.0.GA.jar:/path/to/hibernate-validator-annotation-processor-4.1.0.Final.jar