The issue is that the PIC24FJ64GA004 doesn't have on-chip EEPROM for you to use. The compiler recognizes this so throws that error. Contrast this against, say, a PIC24F32KA302, which has 512 Bytes of on-chip EEPROM.
Your best bet if you need Non-Volatile memory to write to via your application is to:
A) Use a different target chip with dedicated on-chip EEPROM
B) Emulate an EEPROM using the unused flash program memory (There are Libraries out there for this)
C) Use an off-chip EEPROM that you can interface with via serial communication (such as This)