it isn’t so difficult to use some pins of J5 as digital input instead of output, the driver can be disabled by setting the appr. flag in the TRISA (port A pins of J5) and TRISE (port E pins of J5). Of course, once you did this, you have to enhance the application. I guess it’s enough to include j5_din.inc and j5_dout.inc into one application, and to add all the hooks to the main.asm (search for the hooks in the main.asm files of both applications)
Mixed digital pin/analog pin configuration: this is also possible, but not that flexible then choosing input/output behaviour.
Search in the PIC18F452 datasheet for “ADCON1” (in the datasheet you will also find the informations about the TRISx registers)