[java] Fatal error compiling: invalid target release: 1.8 -> [Help 1]

If you are using Eclipse IDE then go inside Window menu and select preferences and there you search for installed JREs and select the JRE you need to build the project