The quake struck at a depth of 91km just outside the coastal town of Cipatujah on Java island late Friday, the US Geological Survey said.