What do you plan to do with it?
Installing Java to run a local application does not cause more security issues than running any local application would. Just stay away from the Browser-Plugin, thats where you might open yourself to security issues.
Thanks. I want to use Angry IP Scanner that requires installation of Java 8 or AdoptOpenJDK. Is it better not to do it? Any other good scanner that scan the IP address of devices connected to my network at home?
The original IP scanner for Windows, Max and Linux. Fast, friendly, extensible, free and open-source. Scans addresses and ports in any range and exports results in many formats.