JAKARTA - A magnitude 6.6 earthquake struck off the main island of Java in Indonesia on Friday afternoon, sending people in high-rise buildings in the capital Jakarta into panic.