A magnitude-6.0 earthquake struck off Java, Indonesia on Friday at a depth of ten kilometers, the country's meteorology, climatology and geophysics agency BMKG said.