xp can be a good platform to java.install jdk and create an environment variable which shows path.
installing VJ++ and some applications require an installation of Microsoft VM.U can download it by free of cost.
if u still persist probloms,try to reinstall xp.then install jdk.because installation probloms also cause java not to run
still probloms?!!. upgrade xp.that's all..
wishing u a problom free compilation...
basha