I have a text file that contains java codes, without main method, for example :
System.out.println("Hello Word");
...
Im looking for a way to run these codes, without using Runtime.getRuntime().exec
is that possible with java reflection or any thing else?