Hello Max,
Javac, like most of the command line tools in the JDK is written in
Java, so to look at the actual program, I would recommend starting here
(assuming current mainline at http://hg.openjdk.java.net/jdk/jdk):
src/jdk.compiler/share/classes/com/sun/tools/javac/Main.java
Most of the executables in the JDK are built from the same launcher src
file with some different -D macro flags set to control which java class
gets invoked by that launcher. The source for the launchers is located here:
src/java.base/share/native/launcher/main.c
Does that answer your question?
/Erik
On 2018-07-20 15:31, mr rupplin wrote:
In building the OpenJDK where may we find the source code file(s) for the javac
output?
In libjli we find the java.c but locate javac.c returns no results. How
curious.
Would you be a friend and help us out. We love reading.
Thanks,
Max
/sr software developer