Eclipse can't find / load main class

前端 未结 20 2212
猫巷女王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 04:58

    I solved my issue by doing this:

    • cut the entire main (CTRL X) out of the class (just for a few seconds),
    • save the class file (CTRL S)
    • paste the main back exactly at the same place (CTRL V)

    Strangely it started working again after that.

提交回复
热议问题