Sorry I didn't see your reply till today, I ran into a problem with my project, fixed it now.
So it seems the error code 0x09 means the computer can't talk to the microcontroller.
There's a couple of things that come to mind that you could try.
First make sure you selected the correct board AND processor from Tools -> Board and Tools -> Processor.
If you're programming an ATMEGA168, Duemilanove and Nano boards used to have them so make sure the processor is correctly selected in Tools -> Processor, the default is processor is ATMEGA328, change that to ATMEGA168.
Another thing I would make sure is that all the connections are working, use a multimeter in continuity mode (beep mode) to check all the connections, especially the crystal.
I think you already knew this, just making sure,
Is the crystal oscillator 16Mhz ? Because the Uno bootloader is designed for a 16Mhz clock. The ATMEGA168 can run on other frequencies of course, but you'd need to change the bootloader.
If nothing works, you could program the ATMEGA through SPI (MOSI, MISO, CLK), but it'd be nice to figure out what went wrong with this approach.
It's been 3 days, probably you've solved this problem by now, so good luck with your project and have a nice day!