If you're running W7 (it's almost the same thing for XP ) click start and type user and choose Change user account control settings and change the notification level to low (i recommend you do this only when gaming) it should stop a lot of notifications from popping up.
For antivirus go in settings and search for notification settings (pretty sure all antiviruses have it, or see it they have smth called gaming mode -most new ones have- in this mode no notifications will be shown).
For java or any other programs that get in the way you can kill the services.
Ways to do this:
1)Stop them from even starting up, most start up when windows starts. To do this go to start and type "
msconfig ", go to services and browse to stop services that you don't want and also check out
startup and stop services you don't want to start at windows startup (Java and almost all auto update services adobe and so on can be disabled from startup )
2)You can stop services only when you are gaming, to do this go to start and type "
services " (it's basically the advanced version of " msconfig " as far as services go. See there what you don't want and right-click and stop, you can start them after you've finished gaming. Or you can go to properties and choose how they start, or disable them completly.
WARNING: From services you can stop everything (if you click disable all) you'll stop EVERYTHING, you're pc will become usless until you restart them. Read carefully and if you're not sure you can google them or send me a message and i'll try to help you out.
P.S. this is a great way to prank someone
) (by stopping every service )