A section that can run normally in jcreatorCodeIn myeclipse, cocould not find the main class, program will exit. The code is correct, yesProgram. The Cause and solution are as follows: the error is reported because we tried to run the Java class file compiled by JDK of a later version on the JVM of a later version. Because the format of the class file generated by JDK of a higher version may be different from that of JDK of a lower version. Class. In this way, the lower version of JVM cannot explain and execute this. Class file, and will throw the cocould not find
The main class. program will exit does not support the class version error. This error is especially evident in versions earlier than JDK 5 and JDK 5. Because JDK 5 has made a lot of enhancements in the Java syntax and introduced some new elements of the. Class file, leading to the failure to interpret and execute the. Class file in the old version of JVM. Even if this class does not use any new elements of JDK 5, The. Class file generated by JDK 5 and jdk1.4 and its previous JVM cannot be identified.