My previous question asked how to compile files with the command JAVAC
. I still don't know how to set the output files of the compiled source files.
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.)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With