转自:http://my.oschina.net/zhuka/blog/124503
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决问题:
由于Eclipse使用的是JRE导致,添加JDK即可