The Problem I am trying to solve is how to execute a Java file (.java extension) or a whole jar (.jar) during runtime from within a java program. The Class / Jar will be sent over Network in order to distribute workload.
My question is what is the best approach. It should be possible to quickly type some code in GUI and let it be executed and/or write large bulk of code in a file and let it be executed. Thus, I need to Compile it and then run it.
So what would be the best approach to this problem in Java ?
PS: sorry for my bad englisch