I have the same experience to feel itch when i wear glasses. There are main two reasons leading to this situation. First of all, for the judgment of eye itching, if it is not accompanied by other symptoms, such as there is no discharge, no conjunctival irritation, etc, you can consider it as seasonal itch, which is quite normal and will remove a few days later. At the same time, this seasonal itch may accompanied with symptoms of nasal itching, runny nose, sneezing. The other reason is the degree of your glasses don't match your eyes. It can cause a lot of uncomfortable feeling, which including itchy eyes. Just give your eyes some time to adjust it or change a right one instead. It's not a big deal, don't worry.
You shall first take off your eyeglasses to check if your eyeglasses lenses got dirt. Sometimes, the dirty eyeglasses can cause itchy eyes. This i also the reason why we need clear our eyeglasses before you wear it. IF NOT, you'd better check your eyes through a mirror. Are your eyes red, If so, you may suffer eye infection, usually, eye infection, eye alleries and dry eyes can cause itchying in the eyes. Just have a check. You can treat your eyes only if you find the causes of the itch eyes. Good luck.
Your itchy eyes have no relationship with your wearing state of glasses. Your eyes may get infection because of the coming invisible bacterium which will also cause other eyes problems. You'd better go to use the eye drops with anti-inflammation to make your eyes feel comfortable and moisture. You could also use the warm compress by finding the hot water and clean cloth to make your eyes feel better.