There are many things that can cause the BSOD for instance I overclock my computer and when I am trying to find the best settings I will get the BSOD it may be memory timings, CPU core voltage, graphics voltage , etc. Usually if you are not OC it is either a driver conflict or a hardware component going bad IE memory, CPU, hard drive, etc.
It can be very hard to find, if you can get the error number you can search the Microsoft data base to see if there are any fixes or possible solutions to the problem.
If you can remember when it started happening if there was any new hardware or software that was recently installed that would be a good place to start.
And yes you can have a corrupt install of Java so un installing it and re installing it may help use the most current version of Java and use the offline installer.
The link below will take you to the newest version of Java.
http://www.java.com/en/download/manual.jsp