Window-〉Preferences -> java ->install jre 我设置的JRE,结果就是这个错误,改成JDK就行了 属于设置问题。 转载于:https://www.cnblogs.com/heli-lonely/p/4904960.html