Try adding different version of jdk. Right click on packages and go to Properties then, go to Java Build Path. Select Libraries and then below select Module Package and click Add Library, then select JRE system library and then go on to the Execution environment and click different are model. Then click finish and apply. This worked for some as far as I have heard.