If this problem happens periodically like you said it could be a problem with your Java.

I would make sure that your Java is up to date and make sure that you don’t have any *.dll files etc on your system from previous versions of Java.