When you have Java downloaded on your computer you will need to make sure that you have some settings enabled.
Then scroll down until you see these two Java settings. Check both.
Note: as indicated you will need to restart your computer for these to run properly. You do not have to restart immediately unless you need to run a Java applet right away.