NEW YORK — Some Mac users were taken by surprise Thursday as their computers stopped running programs that use the Java programming language after Apple blocked Java due to security problems.
Java allows programmers to write a wide variety of Internet applications and other software programs and run them on most computers, including Apple Inc.’s Mac.
Earlier this month, however, the Department of Homeland Security recommended disabling Java in Web browsers to help prevent hacking attacks.
Oracle Corp., which owns Java, has issued updates that fix known vulnerabilities, but the DHS expects that there are more flaws in Java’s coding.
Apple sends out virtual ‘‘blacklists’’ to Internet-connected Macs, instructing them not to run certain programs. Apple is blocking the latest version of Java from running on the most recent versions of its Mac operating system, and blocking an older version, Java 6, from running on the older version of its Mac system, called Snow Leopard.
The blocks affect programs and online games that use Java in Web browsers.
Oracle had no immediate comment.