1. A method for directing to recompile a compiled class with a static variable of a class, the method comprising: executing a first virtual machine comprising the method and the compiled class, wherein the class defines an object comprising the static variable and at least two implementations that are selectively compiled pursuant to a value of the static variable, wherein the compiled class is an executable code of the class that is derived from a first implementation of said at least two implementation, wherein the first implementation was selected when the static variable is a default value; determining, while said executing the first virtual machine, that the static variable in the compiled class was modified to a new value; commanding a compiler to generate a recompiled class responsive to said determining that the static variable was modified to a new value, wherein the recompiled class is another executable code of the class that is derived from a second implementation of said at least two implementation, wherein the second implementation was selected when the static variable is not the default value; acquiring the recompiled class from the compiler in response to said commanding the compiler; setting the static value in the recompiled class to the new value; and transitioning from the first virtual machine to a second virtual machine comprising the method and the recompiled class.