KANSAS CITY, Kan. (AP) _ A train carrying 2,000 tons of rotting New York garbage arrived here Thursday after a judge booted it out of a town in Illinois.

City officials said they will seek a court order barring the trash train from remaining here.

''We want it out of the community,'' said city spokesman Robert Ross. He said the trash hauler, TENNSV Inc. of Oklahoma City, doesn't have the necessary permits to unload it in Kansas City.

A spokesman for TENNSV didn't return telephone calls late Thursday. Earlier, the company issued a statement saying it will dump the garbage in a landfill near Clinton, Mo., about 60 miles southeast of Kansas City.

Meanwhile, another 9,000 tons of trash remained stuck on a train in Sauget, Ill., near St. Louis.

Officials in Illinois' St. Clair County sought a court-order to move the leaking, bug-infested, trash-filled rail cars, claiming their presence violated Illinois environmental laws, said Ernie Slottag, spokesman for the Illinois attorney general's office.

The trash arrived in Fairmont City, Ill., sometime before June 30, said Scott Penny, police chief for the city of less than 3,000.

''It was a God-awful mess,'' Penny said. ''It was the worst experience we've had down here in quite some time.''

Circuit Judge James Radcliffe in St. Clair County ordered the cars moved Wednesday. They left Wednesday night for the 400-mile trip to Kansas City.

The garbage originally was bound for landfills in Illinois, but the permit for a transfer station in St. Louis expired, Illinois officials said. The trash hauler used Fairmont City as an impromptu and illegal transfer site, they said.

Earlier this week, Radcliffe fined TENNSV $10,000 and barred it from bringing any more waste into St. Clair County. That stranded the train with about 9,000 tons of trash in Sauget. Radcliffe gave TENNSV until July 22 to take the trash from Sauget to Illinois landfills.