In Windows, select Start > Control Panel > Java to open the Java control panel. Note that switching to the Classic View may help you find it.
Switch to the Advanced tab > Security > Mixed code, and select Enable - hide warning and run with protections as shown below:
This option suppresses the warning dialog. The code executes as if the user had clicked No from the warning dialog.
Click Apply and then OK.