Appeal from a judgment of the County Court of Albany County (Rosen, J.), rendered September 14, 1999, convicting defendant upon his plea of guilty of the crime of criminal possession of a weapon in the second degree.
Defendant was charged in an indictment with several crimes after he and a codefendant allegedly entered the home of the victim, threatened him with a handgun and took $500. Thereafter, he pleaded guilty to criminal possession of a weapon in the second degree in satisfaction of all charges and waived his right to appeal. In accordance with the plea agreement, he was sentenced to nine years in prison to be followed by a 2½-year period of postrelease supervision.
Defendant now appeals contending, among other things, that he was coerced into entering the plea and, therefore, his waiver of appeal should not be enforced. Defendant, however, did not move to withdraw his plea or vacate the judgment of conviction, a necessary prerequisite to preserving this claim (see People v Urbina,
Given defendant’s voluntary waiver of the right to appeal, he has waived his remaining claims, including his challenge to the sentence as harsh and excessive (see People v Hidalgo,
Mercure, J.P., Crew III, Carpinello and Kane, JJ., concur. Ordered that the judgment is affirmed.
