To run doclint on part of a project, put the compiled classes for your project on the classpath (or bootclasspath), then specify the source files to be checked on the command line.