Java: Error AccessControlException =>” “” “connect,resolve


you want to launch a Java Applet and you get an error like this AccessControlException =>” “” “connect,resolve.

This error typically occurs when you start an applet and this applet want to open a socket connection to an different IP Address or TCP Port as the applet came from. Since Java 8 such action would blocked.

But there is a workaround to get this running.

Add the URLs/IP Address to the Site exception list

Java Site Exception List
Java Site Exception List

Then open the java.policy file located in the subfolder lib\security at the Java installation folder and add the following string to the grant section, replace with your IP Address respectively TCP Port.
In this example C:\Program Files (x86)\Java\jre1.8.0\lib\security\java.policy

grant {
   permission "", "connect, resolve";

Restart your Browser and try again.


Advertisment to support

3 thoughts on “Java: Error AccessControlException =>” “” “connect,resolve”

    1. Right click and run notepad.exe as an administrator. Then browse to and open the java.policy file and make your change. Make sure you’re looking for all files.

  1. Having exactly the explained problem.
    I’m using Java Version 8 Update 281 (build 1.8.0_281-b09).
    Tried the above suggested settings, unfortunately without success.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.