i dont think this is possible.. wat is getting executed will be there in class file.. otherwise it will be better to write your program to work like a compiler and have the java file as a text file, such that your class file will be reading the java file(the txt file) and send it to compiler.. try, try, try, until you succeed :)