Heat oven to 350°F. Line a 9-inch square pan with parchment and lightly grease.
Cream butter with both sugars until smooth and slightly fluffy.
Beat in vanilla until combined.
Whisk flour, baking powder, and salt in a bowl.
Mix dry ingredients into the butter mixture until clumps form. Reserve about 1 1/2 cups for topping.
Press the remaining crumb mixture firmly into the prepared pan.
Warm jam briefly if thick. Spread it evenly over the crust.
Toss reserved crumbs with coconut and pecans. Sprinkle over the jam in an even layer.
Bake 28–33 minutes, until golden and the jam bubbles at the edges.
Cool completely in the pan. Lift out, then cut into bars.