Search code examples
netbeansderby

Netbeans and Derby : access denied


I have just downloaded and installed Netbeans 7.2.1. Goind on the service tab and trying to start JavaDB. I have the following error :

java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read")

:(

a problem Java Security Manager

Can someone tell me how to resolve this to finally start javaDB by right clicking and choose "Start server" ?

Thank you


Solution

  • To solve this , You need to append this permission below to the java policy file that is shipped with JDK 1.7.:

    permission java.util.PropertyPermission "file.encoding", "read";
    

    The file can be found under : /jdk1.7.0/jre/lib/security/java.policy

    Visit this link for more information. You can check this IBM document for configuration file descriptions.