You can do this using classes inside javax.tools. You will have a class ToolProviderfrom which you can get the compiler instance and compile the code at runtime. Later, you will upload files .classsimply compiled separately with ClassLoader, unless you get the binary directly for this class, and you can link it directly.
Look here
Jack source
share