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?
- yes, You could compile any javasource file and initialize that file using classloader.Naveen Ramawat– Naveen Ramawat2015-07-06 14:34:23 +00:00Commented Jul 6, 2015 at 14:34
- stackoverflow.com/questions/21544446/…JP Moresmau– JP Moresmau2015-07-06 14:35:19 +00:00Commented Jul 6, 2015 at 14:35
- Other then the ClassLoader docs do you have any examples?Kuliu– Kuliu2015-07-06 14:37:24 +00:00Commented Jul 6, 2015 at 14:37
Add a comment |