@@ -0,0 +1,1661 @@
+/*%0A * Copyright (c) 2014, Arturo Tena %3Chttp://arturotena.com%3E%0A *%0A * Permission to use, copy, modify, and/or distribute this software for any%0A * purpose with or without fee is hereby granted, provided that the above%0A * copyright notice and this permission notice appear in all copies.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22 AND THE AUTHOR DISCLAIMS ALL WARRANTIES%0A * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF%0A * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR%0A * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES%0A * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN%0A * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF%0A * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.%0A */%0Apackage com.arturotena.compilertoolsplayground.test1;%0A%0Aimport javax.lang.model.SourceVersion;%0Aimport javax.tools.JavaCompiler;%0Aimport javax.tools.ToolProvider;%0A%0A/**%0A * Print the class name of the javax.tools.JavaCompiler and the source versions%0A * supported.%0A *%0A * @author Arturo Tena %3Chttp://arturotena.com%3E%0A */%0Apublic class Main %7B%0A%0A    public static void main(String... args) %7B%0A        final JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();%0A        System.out.println(compiler.getClass().getName());%0A        for (final SourceVersion ver : compiler.getSourceVersions()) %7B%0A            System.out.println(ver);%0A        %7D%0A%0A        /*%0A         It should print something like:%0A         com.sun.tools.javac.api.JavacTool%0A         RELEASE_3%0A         RELEASE_4%0A         RELEASE_5%0A         RELEASE_6%0A         RELEASE_7%0A         RELEASE_8%0A         */%0A    %7D%0A%7D%0A

Print compiler info.