U.S. District Judge Frederick Motz on Tuesday ordered Microsoft to include a Java Runtime Environment provided by Sun Microsystems in new copies of Windows XP and Internet Explorer within 120 days.