Dennis, I've only got Bevel engines, but I'm sure the principle will be the same on the more modern stuff. The nut will be on very tight - 120 lb/ft ish, so you will need to put it in gear, put the brakes on, and put it against a wall as the guys suggest above. I would advise to get someone to sit on the bike holding on the brakes - it's not really a 1 man job - then get a decent sized breaker bar and make sure the socket is sitting square on the nut - you don't want it slipping off and hitting the cases! It should then come off - but don't be surprised if you really have to strain a bit to shift it!
Another couple of points - you'll need to do it up really tight again or it can work loose! The older engines will leak oil if it's not torqued up correctly - though that may not apply to the modern engines.
Just another point - are you changing both front and rear sprockets? That seems to be a big change in the gearing - most people usually change just one and say it makes a big difference. It might be a bit of a pain on motorway with the gearing shortened that much?