Ask Your Question

Revision history [back]

The com.sun.tools.javac package is not a public API and is not recommended to be used in production code. However, for development purposes, one can obtain the com.sun.tools.javac package by including the tools.jar file from the JDK installation into the classpath of the project. For Java 8 or higher, the tools.jar file can be found in the lib folder inside the JDK installation directory.