When this situation occurs, it means the Java isn't installed properly to the latest version. This is actually a security issue that can be fixed by downloading Java and updating it. You can perform an overwrite installation but it isn't recommended as you will need new libraries to be installed in your browser. Installing a new version should fix the issues you encountered.