options.add("-source");
options.add("1.6");
options.add("-verbose");
options.addAll(classes);
int compilationResult = compiler.run(null, System.out, System.err, options.toArray(new String[options.size()]));
if (compilationResult == 0) {
System.out.println("Compilation is successful");
} else {
Assert.fail("Compilation Failed");
}