How to set the output of a JAVAC compiled file

My previous question asked how to compile files with the command JAVAC. I still don't know how to set the output file of the compiled data.

Jon Skeet
people
quotationmark

The output of javac is always classfiles, and the name of the file matches the name of the class contained within it. (A source file with multiple classes in will result in multiple output files.)

If you use the -d command line option, javac will also use the package of the class to generate a directory hierarchy, with the -d option specifying the root. Otherwise, each class file will be output in the same directory as the source file from which it was compiled.

people

See more on this question at Stackoverflow