Running java issue on Eclipse [duplicate]

Hi I am a beginning java learner, and need to run my code in Eclipse.
However I encountered below error:

objc[4852]: Class JavaLaunchHelper is implemented in both
One of the two will be used. Which one is undefined. Error: Could not
find or load main class

It looks like there are two path ways and Eclipse couldn’t read the code/recognize the class.

Comments 1

  • “Error: Could not find or load main class” This error usually means you don’t have a main method on the Class your are trying to run.

    I have personally had issues with having installed JREs twice. Remove the non-eclipse one and the problem may disappear.


电子邮件地址不会被公开。 必填项已用*标注