A 6.3-magnitude earthquake has hit Central Java around 120 kilometres south-west of Cilacap at a depth of 24 kilometres,