Eclipse can't find / load main class

前端 未结 20 2153
猫巷女王i
猫巷女王i 2020-12-05 04:40

My Eclipse (Indigo) was running just fine. I created a simple class Hello. It is placed in package cont in the folder ch13. However

20条回答
  •  自闭症患者
    2020-12-05 05:15

    Renaming the main class should be enough (and easiest):
    - Go to your class and set cursor to your class name;
    - ALT + Shift + R and rename the class (build if not done automatically);
    - You should be able to run it now;
    - Rename the class to the old name if you want;

提交回复
热议问题