Error and LEDs not working

Hey, I'm trying to make a nightlight in a box, where if the photoresistors (2) both register high, then the program starts. You press a button to switch between 2 different patterns of flashes on LEDs. There are 12 LEDs. They all go to a red red black black brown resistor and into the GND. But first, I am trying to simply light everything up at once. LEDs 0-3 and 5-7 are lit up. The others are off. The polarity is correct. Here is my code:

 void setup() {
  DDRD = B11111111; //Pins 0-7 outputs
  DDRB = B11111111; //Pins 8-13 outputs
}

void loop() {
  PORTD = B11111111; //Pins 0-7 HIGH
  PORTB = B11111111; //Pins 8-13 HIGH
}

I am getting this error message. It might have nothing to do with my project but here it is.

Arduino: 1.6.0 (Windows 7), Board: "Arduino Uno"

Sketch uses 462 bytes (1%) of program storage space. Maximum is 32,256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x01
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 37

at processing.app.tools.DiscourseFormat.appendFormattedLine(DiscourseFormat.java:192)

at processing.app.tools.DiscourseFormat.show(DiscourseFormat.java:99)

at processing.app.Editor.handleDiscourseCopy(Editor.java:1712)

at processing.app.Editor$TextAreaPopup$4.actionPerformed(Editor.java:2776)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 37

at processing.app.tools.DiscourseFormat.appendFormattedLine(DiscourseFormat.java:192)

at processing.app.tools.DiscourseFormat.show(DiscourseFormat.java:99)

at processing.app.Editor.handleDiscourseCopy(Editor.java:1712)

at processing.app.Editor$TextAreaPopup$4.actionPerformed(Editor.java:2776)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

So really, I have two problems, the error and the pins not turning LEDs on. Anyone have ideas?
Thanks,
Eric

Have you just installed a new version of the Arduino IDE, or is this your first install? It looks like a device driver is missing, as I can compile your code without error. You might need to manually install the drivers (look in the drivers directory).

Error indicates that the sketch is not getting loaded onto the board. Now why is this?

I don't think it's a driver issue - it would complain that it didn't have a COM port if the drivers were missing. Is the right COM port selected? Also, recheck wiring.

Could the LEDs on TX and RX be interfering with communication? try removing them.

Just updated. Same code.

Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10601 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\nightlight.cpp -o C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\nightlight.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\hooks.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\WInterrupts.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\wiring.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\wiring_analog.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\wiring_digital.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\wiring_pulse.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\wiring_shift.c.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\abi.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\CDC.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\HardwareSerial.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\HardwareSerial0.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\HardwareSerial1.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\HardwareSerial2.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\HardwareSerial3.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\HID.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\IPAddress.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\main.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\new.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\Print.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\Stream.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\Tone.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\USBCore.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\WMath.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\WString.cpp.o

Using previously compiled file: C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\core.a

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-gcc -w -Os -Wl,--gc-sections -mmcu=atmega328p -o C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/nightlight.cpp.elf C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp\nightlight.cpp.o C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/core.a -LC:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp -lm

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/nightlight.cpp.elf C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/nightlight.cpp.eep

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/nightlight.cpp.elf C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/nightlight.cpp.hex

Sketch uses 462 bytes (1%) of program storage space. Maximum is 32,256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM7 -b115200 -D -Uflash:w:C:\Users\Eric\AppData\Local\Temp\build6237728636547728850.tmp/nightlight.cpp.hex:i

avrdude: Version 6.0.1, compiled on Jan 15 2015 at 16:58:43

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf"

Using Port : COM7

Using Programmer : arduino

Overriding Baud Rate : 115200

avrdude: ser_open(): can't open device "\.\COM7": The system cannot find the file specified.

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Ah!

So you have it set to use COM7 and there's no COM7 - is the Arduino still plugged into the computer? do you have the right COM port selected? (if you had some other serial device connected, and now you've removed it, that would imply that you had the IDE pointed at the device you removed; if that's not the Arduino, then you had the wrong port selected in the first place)

Questions to answer:
Does com 7 appear in the device manager?
If you plug the board in while the device manager is open, what com port appears?

--Michael

When you post a long list of error messages like these, you might want to enclose them in code tags so the post uses a few less nano acres to list it.

Alright. I changed the port I think to the uno board and now it says it's out of sync.
Lol, I didn't even see the other replies when I started typing this. Thanks everyone. The sync problem is still there though.