An appeals court has reversed a lower court's ruling that Microsoft must distribute a version of Java endorsed by Sun. But the appeals court also affirmed a ruling saying Microsoft violated Sun's copyright by distributing its own version of the Java programming language with its products.\nWASHINGTON - An appeals court has reversed a lower court's ruling that\u00a0Microsoft\u00a0must distribute a version of Java endorsed by\u00a0Sun. But the appeals court also affirmed a ruling saying Microsoft violated Sun's copyright by distributing its own version of the Java programming language with its products.\nBoth companies claimed victory after the Fourth U.S. Circuit Court of Appeals announced its decision Thursday, another step in Sun's private antitrust lawsuit against Microsoft which is scheduled to go to trial in 2005..\nU.S. District Court Judge Frederick Motz erred in his\u00a0Dec. 23 ruling\u00a0requiring Microsoft to carry the Sun-compatible version of Java with its operating systems and browser products because there was no proof that Sun would suffer "immediate irreparable harm" without the order, appeals court Judge Paul Niemeyer wrote.\nSun has argued that Microsoft, by distributing a version of Java incompatible with the one developed by Sun, has attempted to create confusion over Java and drive programmers to its own .Net Internet-enabled programming platform. Microsoft will use its monopoly in the PC operating system to convert programmers to .Net in the middleware market, Sun lawyers have argued.\nBut Niemeyer questioned the connection between the middleware and PC operating systems markets. "The mandatory preliminary injunction aimed at prevention 'distortion' in the new emerging market for middleware has not been linked in fact or by any established legal theory to the final relief that Sun seeks in its claim that Microsoft has illegally maintained its monopoly in the market for worldwide licensing of Intel-compatible PC operating systems," Niemeyer wrote.\nThe appeals court did uphold Motz's order prohibiting Microsoft from distributing any version of Java other than one allowed by Sun in a 2001 license given to Microsoft.\nMicrosoft spokesman Jim Desler called Thursday's ruling a "positive step," saying the must-carry Java order was the key issue that needed to be resolved by the appeals court. As for the copyright infringement order, Microsoft already complied in February replacing the service pack Windows XP SP1 with a new service pack, XP SP1a, which excludes Microsoft's Java virtual machine by replacing the service pack Windows XP SP1 with a new service pack excluding Microsoft's Java virtual machine.\u00a0\n"We have continued throughout the past year to resolve conflicts, work with others in the industry and focus on the future," Desler said.\nSun officials said they are exploring their options on the must-carry Java decision. The company could ask for a rehearing or ask Motz to reissue his order after addressing the appeals court concerns over the order. Sun may also decide not to press the must-carry order because of announcements earlier this month that Dell and HP will begin carrying Sun's version of Java on their computer systems, said Lee Patch, Sun's vice president for legal affairs.\nPatch and Rich Green, Sun's vice president of developer platforms, called the appeals court ruling on the copyright infringement important to the Java developer community because it ends the confusion between the Sun and Microsoft versions of Java that were previously distributed. OEMs now don't have to choose between the two companies' versions of Java, Green said.\nPC manufacturers realized they wouldn't get Java from Microsoft anymore, and as a result of the ruling have come directly to Sun so PC customers can continue to run Java programs on their computers, Green said\nThursday's decision confirms Sun's allegations about Microsoft, Patch added.\nLee Patch, Sun's vice president for legal affairs, called the appeals court ruling on the copyright infringement issue "an important victory for the Java community."\n"This decision confirms that Microsoft violated our prior settlement agreement, and that it did so in a way that continued to fragment the Java platform on PCs," Patch said in a statement. "While we are disappointed with the delay that results from the court's determination to vacate and remand the must-carry preliminary injunction, the court accepted the district court's determination that Microsoft engaged in anticompetitive acts."