Package com.sun.tools.javac

Examples of com.sun.tools.javac.Main


                } else {
                    try {
                        ByteArrayOutputStream bos =
                            new ByteArrayOutputStream();
                        PrintWriter pw = new PrintWriter(bos);
                        Main compiler = new Main();
                        int ret = compiler.compile(cmds, pw);
                        if (ret != 0) {
                            byte[] errorBytes = bos.toByteArray();
                            String errorString = new String(errorBytes);
                            throw new JavaCompilerException(
                                "java_compiler.error", "Native compiler returned an error: {0}\nError messages are: {1}", new Object[] { new Integer (ret), errorString } );
View Full Code Here

TOP

Related Classes of com.sun.tools.javac.Main

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.