> For the complete documentation index, see [llms.txt](https://docs.swingsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swingsoftware.com/pdf-converter-for-notes/troubleshooting/error-messages/error-java.security.accesscontrolexception-access-denied-some-class-exception.md).

# Error - java.security.AccessControlException: Access denied (\[SOME CLASS EXCEPTION]) - Learning Cent

This kind of error message usually happens if Lotus Domino Server or Lotus Notes java.policy document is not updated with correct security permissions required for Swing PDF Converter to run properly.

Java.policy is automatically updated when Swing PDF Converter is installed.

If for some reason this process is not done automatically, here's how to do it manually:

Open `java.policy` document stored in `[Lotus Domino or Notes installation folder]\jvm\lib\security`

Add this statements within "grant" section:

```java
// required by SWING PDF Converter for OpenOffice on server functionality
permission java.util.logging.LoggingPermission "control";
permission java.lang.RuntimePermission "modifyThread";
permission java.lang.RuntimePermission "getenv.*";

// required by SWING PDF Converter for CMIS functionality
permission java.util.PropertyPermission "java.protocol.handler.pkgs", "write";
permission java.net.NetPermission "setDefaultAuthenticator";
```

Save "Java.policy", restart Domino Server / Lotus Notes and test conversion.

&#x20;`java.policy` document should look like this:

```java
//
// @(#)src/security/sov/config/java.policy, security, asdev, 20060421 1.5
// ===========================================================================
// Licensed Materials - Property of IBM
// "Restricted Materials of IBM"
//
// IBM SDK, Java(tm) Technology Edition, v6
//  (C) Copyright IBM Corp. 1999, 2005. All Rights Reserved
//
// US Government Users Restricted Rights - Use, duplication or disclosure
// restricted by GSA ADP Schedule Contract with IBM Corp.
// ===========================================================================
//


// Standard extensions get all permissions by default

grant codeBase "file:${java.home}/lib/ext/*" {
 permission java.security.AllPermission;
};

// default permissions granted to all domains

grant { 
 // Allows any thread to stop itself using the java.lang.Thread.stop()
 // method that takes no argument.
 // Note that this permission is granted by default only to remain
 // backwards compatible.
 // It is strongly recommended that you either remove this permission
 // from this policy file or further restrict it to code sources
 // that you specify, because Thread.stop() is potentially unsafe.
 // See "http://java.sun.com/notes" for more information.
 permission java.lang.RuntimePermission "stopThread";

 // allows anyone to listen on un-privileged ports
 permission java.net.SocketPermission "localhost:1024-", "listen";

 // "standard" properies that can be read by anyone

 permission java.util.PropertyPermission "java.version", "read";
 permission java.util.PropertyPermission "java.vendor", "read";
 permission java.util.PropertyPermission "java.vendor.url", "read";
 permission java.util.PropertyPermission "java.class.version", "read";
 permission java.util.PropertyPermission "os.name", "read";
 permission java.util.PropertyPermission "os.version", "read";
 permission java.util.PropertyPermission "os.arch", "read";
 permission java.util.PropertyPermission "file.separator", "read";
 permission java.util.PropertyPermission "path.separator", "read";
 permission java.util.PropertyPermission "line.separator", "read";

 permission java.util.PropertyPermission "java.specification.version", "read";
 permission java.util.PropertyPermission "java.specification.vendor", "read";
 permission java.util.PropertyPermission "java.specification.name", "read";

 permission java.util.PropertyPermission "java.vm.specification.version", "read";
 permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
 permission java.util.PropertyPermission "java.vm.specification.name", "read";
 permission java.util.PropertyPermission "java.vm.version", "read";
 permission java.util.PropertyPermission "java.vm.vendor", "read";
 permission java.util.PropertyPermission "java.vm.name", "read";

 permission java.util.PropertyPermission "javax.realtime.version", "read";

    // required by SWING PDF Converter for OpenOffice on server functionality
    permission java.util.logging.LoggingPermission "control";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "getenv.*";

    // required by SWING PDF Converter for CMIS functionality
    permission java.util.PropertyPermission "java.protocol.handler.pkgs", "write";
    permission java.net.NetPermission "setDefaultAuthenticator";
};

// Notes java code gets all permissions

grant codeBase "file:${notes.binary}/*" {
 permission java.security.AllPermission;
};

grant codeBase "file:${notes.binary}/rjext/*" {
 permission java.security.AllPermission;
};

grant codeBase "file:${notes.binary}/ndext/*" {
 permission java.security.AllPermission;
};

grant codeBase "file:${notes.binary}/xsp/-" {
 permission java.security.AllPermission;
};

grant codeBase "file:${notes.binary}/osgi/-" {
 permission java.security.AllPermission;
};


```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.swingsoftware.com/pdf-converter-for-notes/troubleshooting/error-messages/error-java.security.accesscontrolexception-access-denied-some-class-exception.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
