boolean processOldJdk ( String jdkHome , Collection < String > classNames ) throws IOException { String RTJAR = jdkHome + "/jre/lib/rt.jar" ; String CSJAR = jdkHome + "/jre/lib/charsets.jar" ; bootClassPath . add ( 0 , new File ( RTJAR ) ) ; bootClassPath . add ( 1 , new File ( CSJAR ) ) ; options . add ( "-source" ) ; options . add ( "8" ) ; if ( classNames . isEmpty ( ) ) { return doJarFile ( RTJAR ) ; } else { return doClassNames ( classNames ) ; } }
Processes named class files from rt . jar of a JDK version 7 or 8 . If classNames is empty processes all classes .