An earthquake measuring 5.7 on the Richter scale shook southern Japan on Saturday.