Java programs is very secure. They run their own 'sandbox' , separated from the rest of the computer.



For windows installation, open this link and you see:



Choose 'windows online'

When it opens, press run and wait during installation. Finaly it says: now Java is installed.