keepcalculator

06 Numbers and Powers

Application Blocked by Java Security? Fix It

Card No. 06·65582 · Updated · Standard formula, shown below

If you see “Application Blocked by Java Security”, it means the Java Runtime Environment (JRE) blocked a program from running because its security settings or certificate didn’t meet the current default requirements. You can usually fix it by adding the application’s URL to the Exception Site List in the Java Control Panel, or by adjusting the security level—though the latter is riskier and should be done with caution.

Why Java Blocks Applications

Java’s security model is designed to prevent untrusted code from running on your computer. When you launch a Java Web Start application or an applet embedded in a webpage, the JRE checks several things:

  • Certificate validity: The application must be signed with a valid code-signing certificate from a trusted authority.
  • Certificate presence: Unsigned applications are blocked by default.
  • Security level: The Java Control Panel has a slider from “Very High” to “High” (and “Medium” in older versions). Higher levels block more applications.
  • Exception Site List: URLs you explicitly add are allowed to run even if they would otherwise be blocked.

This blocking is a protective measure, but it can be frustrating when you need to run a legitimate internal business tool or a legacy application.

How the Java Security Check Works

When you try to run a Java application, the JRE performs a series of checks before launching it:

  1. Manifest and JAR verification: It checks the digital signature of the JAR files.
  2. Certificate chain validation: It verifies that the certificate is issued by a trusted CA and hasn’t expired.
  3. Permission request: The application may request permissions (like file access). If the security level is “High”, only signed applications that don’t request excessive permissions are allowed.
  4. User prompt: If the application passes the initial checks, you’ll see a security warning asking if you want to run it. If it fails, you’ll see the “Application Blocked” dialog.

This process happens every time you launch the application, not just the first time.

How to Fix the Blocked Application

Here are the steps to allow a blocked Java application to run. Try them in order, as the first is the safest.

Add the URL to the Exception Site List

  1. Open the Java Control Panel. On Windows, go to Start > Control Panel > Java. On macOS, go to System Preferences > Java.
  2. Click the Security tab.
  3. Click Edit Site List.
  4. Click Add and enter the URL of the application. For example, if the app is at https://mycompany.com/app, enter exactly that.
  5. Click OK and then OK again to save.
  6. Restart your browser or try launching the application again.

Note: The URL must match the one in the address bar when you click the launch link. If the application is launched from a JNLP file, the URL is the one in the codebase attribute.

Lower the Security Level (Not Recommended)

If you’re confident the application is safe, you can lower the security slider from “Very High” to “High” or “Medium”. However, this makes your system more vulnerable to malicious Java applets. Only do this temporarily and restore the setting afterward.

Update Java or the Application

Sometimes the application uses an old version of Java that is no longer supported. Updating Java to the latest version (from java.com) can resolve compatibility issues. Conversely, if the application is old, it may not work with newer Java versions; you might need to install an older JRE (but be aware that old Java versions have known security vulnerabilities).

Check the Certificate

If the application is self-signed or uses an untrusted certificate, you can import the certificate into Java’s trusted certificate store. This is advanced and should only be done if you trust the source. Use the keytool command (available with the JDK) to import the certificate.

Common Problems and Misconceptions

  • Misconception: “Disabling Java security entirely is the only way.” That’s not true; the Exception Site List is the intended method for trusted applications.
  • Problem: “I added the URL but it still blocks.” The URL must be exact. Check for trailing slashes, http vs https, and whether the application is loaded from a different domain.
  • Problem: “The security warning doesn’t appear at all.” This can happen if the Java plugin is disabled in the browser. Modern browsers (Chrome, Firefox) no longer support Java applets; you may need to use Internet Explorer or a legacy browser.
  • Misconception: “Java is the same as JavaScript.” They are completely different. This error is about the Java plugin, not JavaScript.

When to Avoid Bypassing the Block

If you don’t recognize the source of the application, or if you’re on a public computer, do not bypass the block. Java security blocks are there to protect you from malware. Only add URLs you trust, such as your company’s internal tools. If you’re an administrator, consider deploying a policy that automatically adds trusted sites via the deployment.properties file.

Alternatives to Java for Running Applications

If you’re constantly fighting Java security, consider whether the application can be replaced or updated:

  • Web-based alternatives: Many legacy Java applets have been replaced by HTML5 or JavaScript versions.
  • Desktop versions: Some applications offer a standalone executable that doesn’t require the Java browser plugin.
  • Virtualization: Run the Java application in a virtual machine with an older OS and Java version, isolated from your main system.

These options can reduce security risks while keeping the application functional.

Frequently Asked Questions

Why does Java block an application that I trust?

Java’s default security level is “High”, which blocks any application that is not signed by a trusted authority. Even if you trust the source, the JRE doesn’t know that. Adding the URL to the Exception Site List tells Java to allow it.

Is it safe to add a URL to the Exception Site List?

It is safe only if you trust the website and the application. Once added, Java will run that application without prompting, so a compromised website could run malicious code. Only add URLs you are certain about.

I added the URL, but the application is still blocked. What now?

Check that the URL is exactly the one shown in your browser when you click the launch link. Also, ensure the application is signed; if it’s unsigned, adding the URL won’t help. You may need to lower the security level temporarily.

Can I disable the Java security warning permanently?

You can set the security level to “Medium”, which suppresses warnings for signed applications, but this is not recommended because it reduces protection. There is no way to completely disable security checks without compromising safety.

Does this error affect JavaScript?

No. Java and JavaScript are entirely different technologies. This error only affects Java applets and Java Web Start applications.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →