Is it possible to Compile a .java file from within a java program and use that compiled java file for use within the java program. For use in scripting outside of the initial java program?
Asked
Active
Viewed 29 times
0
-
yes, You could compile any javasource file and initialize that file using classloader. – Naveen Ramawat Jul 06 '15 at 14:34
-
http://stackoverflow.com/questions/21544446/how-do-you-dynamically-compile-and-load-external-java-classes – JP Moresmau Jul 06 '15 at 14:35
-
Other then the ClassLoader docs do you have any examples? – Kuliu Jul 06 '15 at 14:37