how to program ATmega 16 with arduino

pleas teach me how to use arduino 1.0.1 to program ATmega 16
I tried using the arduino-ekstras from http://www.avr-developers.com/ but no luck
it was error like it

Read this tutorial:
http://pdp11.byethost12.com/AVR/ArduinoAsProgrammer.htm

Just replace the atmega328p given as an example with your atmega16 and make these connections (supposing that you have an atmega16 in DIL40 package):

Arduino Uno -> pin Atmega16
SS -> 9
MOSI -> 6
MISO -> 7
SCK -> 8