I'm making a program, that I basically never want to shut down, and hence, make the code automatically update. In the following link is described how to compile a java class : Compiling external .java files from within Java
What I really want to do, is also use these classes in the program compiling it. Compiling it once every let's say hour is easy with a thread, but in Eclipse it messes up if other classes which are already given and static, try to access a file that gets compiled real-time. Now a solution I could think of would be creating lots of empty functions so I could fill them in later.
Or - make any access to the class just reference the class and let the class be the only one accessing itself.
But is there an easier way to do this?
Thanks in advance!