今天在eclipse中写了个类运行,系统弹框Could not find the main class. Program will exit.。eclipse
缘由:电脑环境变量jdk是1.6,工程设置的jdk是1.5。低版本环境运行了高版本编译的类。ip
解决:工程→1.6 或者 编译时用1.5it