eclipse報錯:'' operator is not allowed for source level below 1.7

報錯:'<>' operator is not allowed for source level below 1.7

這是eclipse的編譯環境與項目的要求不對應造成的,這個錯誤一般是導入別的項目纔出現的。

解決:

右鍵項目-->Properties-->Java Compiler-->勾選Enable project  specific  settings--Compiler compliance level-->選擇1.7-->OK

轉載自:http://bbs.csdn.net/topics/391040542?page=1

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章