1. A method for optimizing execution of a software program during class loading phase, comprising the steps of: receiving a code method of the program for compiling; detecting whether program execution is in class loading phase; and reducing compiling if program execution is in class loading phase.