First, you need to download the Samsung drivers for your OS which can be found:
Second, you need to make sure you download WinRAR (google it and you should be able to get it) otherwise if your pc doesn't have a program to recognize rar and tar files, you are out of luck.
then read this thread:
1. Now, Extract ODIN from its .rar and place the .exe on your desktop
2. Extract the .pit file from its .rar and place that on your desktop
3. Place the JFD .tar file on your desktop but DO NOT EXTRACT
Now you can use ODIN
4. Start ODIN Odin3. [Android + SLP], through ODIN select the .pit file
5. Hit "PDA" button, and through ODIN select the .tar file
6. Plug your TURNED OFF PHONE
into the USB cable
7. Wait for the Battery/ charging indicator to start
8. HOLD VOL UP+ VOL DOWN+ POWER, as soon as the screen goes black RELEASE POWER, and continue to HOLD VOL UP+ VOL DOWN Until it enters download mode. Which should happen quickly and looks like a men at work highway sign.
i added this cause their method didn't work for me if you get stuck at # 8 & cannot get into download mode, what I did to enter was to have the battery out of the phone when I plugged it in to the USB cable & then held down the vol up/vol down simultaneously & while holding the keys down i put the battery in <_< wish i had 3 or 4 hands lol
9. If a COM port has turned Yellow in ODIN, then the device has been recognized. If it hasn't, unplug and plug your phone back in.
10. Don't select any options, other than what is set as default.
11. Hit start and be patient, takes me maybe 5 minutes to get back up and running.
NOTE: If you do not see a blue progress bar on the phone's screen after a minute;
11a. Turn your phone off by pulling the battery.
11b. CLOSE ODIN
11c. Start at step 4 again.
ODIN needs to be open and ready to flash before the phone is plugged in, in my experience. Its very picking about this, and not everyone has this issue, but I did and following all these steps helped me flash my phone more times than I can count the other day haha.