If you don’t absolutely need Java dump it since is has been known to be easily exploited. I haven’t had Java so long I can’t remember when I uninstalled it once and for all.