日期:2014-05-19  浏览次数:20779 次

could not find the main class.Program will exit
今天早上打开不了,myeclipse出现了could not find the main class.Program will exit 报错。
在网上查了说JDK版本高了。但是我昨天还在用的 关机之前还是好好的,还说可以再myeclipse里设置下,可是都打不开怎么设置呢!
点击确定按钮出现这样状况:
  JVM terminated. Exit code=1
C:\Program Files\MyEclipse 6.6\jre\bin\javaw.exe
-Xms256m
-Xmx512m
-XX:PermSize=128M
-XX:MaxPerSize=256M Duser.language=
-jar C:\Program Files\MyEclipse 6.6\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-os win32
-ws win32
-archx86
-sjpwsplash
-launcher C:\Program Files\MyEclipse 6.6\eclipse\eclipse.exe
-name Eclipse
-launcher.library C:\Program Files\MyEclipse 6.6\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup C:\Program Files\MyEclipse 6.6\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata 108_78
-clean
-vm C:\Program Files\MyEclipse 6.6\jre\bin\kjavaw.exe
-vmargs
-Xms256m
-Xmx512m
-XX:perSize=128M
-XX:MaxPerSize=256M Duser.language=
-jar C:\Program Files\MyEclipse 6.6\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar

------解决方案--------------------
你原来的JDK版本是多少?然后去cmd看一下java -version,现在的版本。如果的确是版本高了,那就去修改环境变量:将使用的那个JDK挪到最前面。
------解决方案--------------------
JDK 版本的问题,我也遇到过。