0

I want to be able to compile a .java at runtime and use it, and then at any time recompile it and use an updated version if the source .java has been changed. I found this https://stackoverflow.com/a/21544850/16496246 which allowed me to compile .java however when I make a change to the source .java and tell my program to recompile the change doesn't take effect.

  • The classloader is probably caching the .class file. See ClassLoader#loadClass for more info. – AlexC Jul 21 '21 at 16:00

0 Answers0