I am making a tool that will write .java files, then (hopefully) compile those files to .class files. All in one process, the user selects a file directory where multiple .java files are written. Now I want the program to compile these Java files.
Share
JavaCompileris your friend. Check the documentation hereAnd here an example on how you could use the compiler API