How compile java code dynamically?