在Eclipse中,我收到一个错误:BuildpathspecifiesexecutionenvironmentJavaSE1.7.TherearenoJREsinstalledintheworkspacethatarestrictlycompatiblewiththisenvironment. 最佳答案 试试这个InEclipse,yourproject->properties->javabuildpath:LibrariesRemovethe"JRESystemLibrary[J2SE1.4]"->click"AddLibrar