How can I create a Java class file from a Java file from my program?
java
Solution
The easiest way (for me) is to include `tools.jar` and to invoke the `com.sun.tools.javac.Main.compile(`) function.
Problem
Suppose there is a Java file that exists in an external folder. Can I write a Java program which will generate a .class file of that Java file and place the .class file in the same external folder?