I have a simple .txt file which has pure Java code inside it like
public class C { public static void main(String[] args ) { System.out.prin
I think I'd start with BeanShell, which allows you to compile and execute Java source held in a string.