Mix flour, sugar, baking powder and vanilla. Add the butter in pieces and mix all together to a dough, by hand or machine. Let rest a while in the fridge to make the dough easier to handle.
Make walnut sized balls and put in small cake liners or directly on a grease proof paper. Make a hole in the middle of the ball and fill with the jam.