I think I found the problem with MPLAB X here...
That guy says that changing "C:\Program Files\Microchip\MPLABX\mplab_ide\etc\mplab_ide.con f" can fix the problem.
He says to change "-J-XX:MaxPermSize=384m" in that file to "-J-XX:MaxPermSize=128m", or delete that option alltogether.
FYI, if you're not interested in using the graphical debugger/simulator to step through the code and see how it works then just install the XC8 compiler, edit the source file to your liking, and compile from the command line. The IDE really isn't usefull if you just want to play with the settings and compile the source.
I'm putting the files online so there's no problems trying to attach them here. I've thrown up a minimal page for the project here...