Do you actually have a need for Java?
--- Actually you will be notified if Java is needed if what you are doing does need it.
--- If you do need it, post back.
My brother needs Java on his computer since he plays Pogo games.
--- His computer runs fine including playing his Pogo games.
In his show hidden icons, as of this past Tuesday maybe Wednesday Java is present and reports java update available.
--- I refused to update it in that manner and told him to let Win10 updates do it when they do so according to their schedule.
--- He already has prior Java updates via Win10 updates.
I can't say that is the exact answer to your issue but I'm letting you know what works on my brother's computer
--- I don't have Java on my Win10 computer because I don't need it.