Initial setup no working-error code-mac-new user

Hi, I am a new user and downloaded the arduino software using a sparkfun redboard. However, after trying to upload the blink code, i recieve this error message:

processing.app.debug.RunnerException at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:179) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78) at processing.app.Sketch.upload(Sketch.java:1178) at processing.app.Sketch.exportApplet(Sketch.java:1152) at processing.app.Sketch.exportApplet(Sketch.java:1124) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2417) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at java.lang.String.replace(String.java:2240) at processing.app.helpers.StringReplacer.replaceFromMapping(StringReplacer.java:97) at processing.app.helpers.StringReplacer.replaceFromMapping(StringReplacer.java:89) at processing.app.helpers.StringReplacer.formatAndSplit(StringReplacer.java:37) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:174) ... 6 more

I tried some initial troubleshooting that I show online such as looking for a bootloader or reseting the board but neither have worked. Only other think I could think of is updating my java but my laptop is only 2 weeks old. If you have any tips or suggestions that would greatly help since I have very limited knowledge.

I was getting the exact same error on both Linux and Windows using IDE 1.6.8. I ended up trying version 1.6.5-r5 and it works perfect.

I was able to upload the Blink sketch to an ATmega328p via FTDI serial interface. My IDE settings are...

Board: Arduino Duemilanove / Diecimila Processor: ATmega328 Port: /dev/USBtty0

Programmer: AVRISP mkll

Results: (with verbose output during upload turned on)

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f avrdude: reading input file "/tmp/build4694256122217543621.tmp/Blink.cpp.hex" avrdude: writing flash (1030 bytes):

Writing | ################################################## | 100% 0.32s

avrdude: 1030 bytes of flash written avrdude: verifying flash memory against /tmp/build4694256122217543621.tmp/Blink.cpp.hex: avrdude: load data flash data from input file /tmp/build4694256122217543621.tmp/Blink.cpp.hex: avrdude: input file /tmp/build4694256122217543621.tmp/Blink.cpp.hex contains 1030 bytes avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.23s

avrdude: verifying ... avrdude: 1030 bytes of flash verified

avrdude done. Thank you.


Hope this helps!