embodiments of the present invention provide a method , system and computer program product for dynamic selection of a runtime classloader for a generated class file . in an embodiment of the invention , a method for dynamic selection of a runtime classloader for a generated class file is provided . the method includes extracting meta - data from a program object directed for execution in an application server and determining from the meta - data a container identity for a container in which the program object had been compiled . the method also includes selecting a container according to the meta - data . finally , the method includes classloading the program object in the selected container .