silly me.Thanks to a post in the forum I realised that I had typos i.e I had left spaces in the code where there weren't any and I had not deleted the \ symbols which marked the end of a line (it's supposed to be all one line so the \ stopsthe code). It was like watching a digital waterfall, very the Matrix. Unfortunately at 803MB it is far to big so if anyone knows how to connect tomcat5 and netbeans without jdk5??