Right click on your project and choose build path->configure build path select the latest JRE you want to use. Error is resolved
A Full Stack developer who is facing problems in development cycle and here you find solution of errors of those problems.This includes all exception and configuration issues. Solutions which i have written in blog are the one which worked for me after killing my time :) .