BAYTOWN, Texas (AP) _ A 65-year-old teacher was injured by a 14-year-old student who threw a pocket knife at her on the day of her retirement party.

Julia Tromblee was attacked Thursday in a seventh-grade science class at Highlands Junior High School. She was hospitalized, but escaped serious injury.

''It's a pretty good wound, but it didn't hit anything vital,'' the teacher said at San Jacinto Methodist Hospital in Baytown. ''The doctor wants to keep me here a few days just to make sure it didn't nick a lung.

''I'm lucky because my rib deflected the blade,'' she said. ''It went in a couple of inches, just missing my lung.''

The student attacked after being told to sit down. When he disobeyed and became unruly, she turned and started to go to another classroom for help. When her back was turned, the knife was thrown.

The boy, whose name was withheld because he is a juvenile, was taken to the Harris County Juvenile Detention Center in Houston, sheriff's Sgt. Skip Oliver said. Police planned to charge him in juvenile court with aggravated assault with a deadly weapon.

She said she is not sure whether she'll be able to return to her classroom but hoped to be back for the last day of classes, at least.

Ms. Tromblee was 15 school days away from retirement when she was attacked, school officials said. Her retirement party will be rescheduled. She had taught in the district for 27 years.

''I know I've seen a big change in kids since I first started teaching,'' she said. ''It must be the times.''