A 6.0-magnitude earthquake hit off the Indonesian island of Java late on Wednesday, US seismologists said, but no tsunami warning was immediately issued.