String classpath =GlobalValues.jarFilePath+File.pathSeparatorChar+pathOfFile+File.pathSeparatorChar+".";
Iterable <String> options = Arrays.asList("-cp", classpath);
CompilationTask task = compiler.getTask(compileWriter, fileManager, null, options, null, compilationUnits);
boolean compileResult = task.call();
if (compileResult == false) {
compilationResult = false; // compilation errors
JFrame compResultsFrame = new JFrame("Compilation Results");
String diagnString = compileWriter.toString();
JTextArea compResultsArea = new JTextArea(diagnString);