Preparing Java Web Start Applications for Testing

Applies to TestLeft 15.40, last modified on March 17, 2022

Support for Java Web Start applications has been removed from Java version 11.

To access Java Web Start applications (.jnlp) running in Internet Explorer, configure your test environment:

Preparing the Javaws.Policy File
  • Locate the javaws.policy file, which is normally located in the \lib\security\ subfolder of the JRE (Java Runtime Environment) folder.

    Prepare the javaws.policy file for the JRE that has the same bitness as the tested Java Web Start application.
  • Open this file in the appropriate text editor.

  • Write the following lines for the grant group:

    permission java.lang.RuntimePermission "";
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

If You Use JavaFX

If your Java Web Start application contains JavaFX controls, make any of the following changes to the <Java-dir>\lib\security\javaws.policy file:

  • Add the permission (it will enable all the other permissions):

    grant {

– or –

  • Specify the permission for the codebase of your Java Web Start app:

    grant codeBase "file:///c:/work/my-javafx-app.jar" {

Preparing the Web Browser

If you are testing a Java Web Start application embedded into a web page, you may need to configure your browser. For example, you may need to set the page’s zoom ratio or prevent security warnings. For detailed instructions, see Preparing Web Browsers for Testing.

See Also

Preparing Java and JavaFX Applications for Testing

Highlight search results