A magnitude 6.0 earthquake struck off the coast of Indonesia's main island of Java late Tuesday, the US Geological Survey (USGS) said, with no immediate reports of damages.