A magnitude-7.1 earthquake jolted the southern Japanese prefecture of Miyazaki on Thursday, said the Japan Meteorological Agency (JMA).