1. 程式人生 > >unsupportedclassversionerror;java compiler level does not match the version of the installed java..

unsupportedclassversionerror;java compiler level does not match the version of the installed java..

今天給專案換了個class,呼叫新class的時候報錯了:unsupportedclassversionerror;大致意思就是不支援的類版本,原來專案是

今天jdk1.7的,新的是1.8的,所以應該改回去1.7.右鍵專案->build path->configure build path...,選擇libraries,add library...,新增對應的版本。

修改了jdk版本之後又提示瞭如題錯誤,myeclipse下修改方案如下:

右鍵專案->myeclipse->project facets[capabilities]->manage...

找到java一項,修改後面對應的版本即可。