Eclipse Updating the compiler compliance to 1.7

后端 未结 4 1997
广开言路
广开言路 2021-02-15 12:52

I am having some trouble updating the compiler compliance of my eclipse workspace (I am actually using RTC, but it is essentially eclipse). Currently, it uses a jdk of 1.6 so I

4条回答
  •  时光取名叫无心
    2021-02-15 13:37

    If you are using eclipse 3.7 then you add 1.7 into compliance level by following way:-

    • right click on project
    • click on Build path->Configure Build Path->project Facets
    • there you can see one link 'convert to faceted form'. click on it
    • mark java and select verion 1.7 from dropdown which is present in front of java tab
    • click on apply and click ok
    • now you can see that 1.7 version is appeared in compliance level

    Note:- Before above step you have to add JRE System library in Build path for jdk1.7

提交回复
热议问题