Problem solved:

I think there was some sort of corruption in the build path. I ended up reformatting my hard drive (I had some other problems along with programs I didn't feel like keeping) and it worked on the first try after that.