javac is a Java compiler for compiling Java programs to bytecode. Source files must have a java extension and be organized in a directory structure that reflects the package tree. The results are class files in a directory structure reflecting the package tree.
javac has the following syntax.
where options are command-line options, sourceFiles one or more Java source files, and @argFiles one or more files that list options and source files.
You can pass source code file names to javac in one of two ways: