Sterilize your jars before using them: leave them in a 200°F (90°C–95°C) oven for 20 minutes.
Preheat the oven to 300°F (150°C). Place the almonds and hazelnuts in the oven and roast until they are a nice amber color right through. This should take about 10 minutes.