Eclipse can't find / load main class

前端 未结 20 2200
猫巷女王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:07

    I have solved the issue following way:

    Go to Run Configuration (Right Click on Java File->Run->Run Configuration).

    Go to ClassPath Tab: Click on Advanced -> Add Folders -> Add bin directory (which has class file in it for Java source code)

    Re run the code, now it will solve the issue. It worked for me

提交回复
热议问题