首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

小弟我的 myeclipse 6.0 在 run java 程序弹出“Editor does not contain a main type”异常信息

2011-12-30 
我的 myeclipse 6.0 在 runjava 程序弹出“Editor does not contain a main type”错误信息我的myeclipse6.0

我的 myeclipse 6.0 在 run java 程序弹出“Editor does not contain a main type”错误信息
我的   myeclipse   6.0   在   run     java   程序弹出“Editor   does   not   contain   a   main   type”错误信息,执行的代码为:


public   class   TestEmun   {


            enum   Day   {Monday   ,   Tuesday   ,   Wednesday   ,   Thursday   ,   Friday   ,   saturday   ,   Sunday   }

public   static   void   main(String[]   args)   {

Day   yesterday   =   Day.Tuesday;
Day   today   =   Day.Friday;
Day   tomorrow   =   Day.Saturday;

//   Output   the   values   of   the   Day   varibles
System.out.println( "Today   is   "+today);
System.out.println( "tomorrow   will   be "+tomorrow);
System.out.println( "Yesterday   was "+yesterday);
  }
}



[解决办法]
活动窗口要是当前这个类

热点排行