错误信息:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决方法:
Eclipse:Windows——>Preferences——>Java——>Installed JREs——>Add——Standard VM——>选择JRE Home为本机java安装路径中javac.exe所在的路径——>点击Finish——>"Apply"——>OK.