Unable to start derby database from Netbeans 7.4

前端 未结 12 742
栀梦
栀梦 2020-12-04 12:21

I downloaded Netbeans 7.4 and Java 7 Update 51. I get the below error when I try to start Java DB or derby connection from Netbeans. This is on a windows 8 PC. I downloaded

12条回答
  •  囚心锁ツ
    2020-12-04 12:36

    You can also solve the problem on a per-user basis by granting the needed permission in a file called .java.policy in your home directory.

    Works on both Unix and Windows systems as documented here: http://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html

    This might be useful if the system-wide policy file gets overwritten, for example when updating your JDK, or if you don't have permission to edit the system file.

    This is what I have in my $HOME/.java.policy:

    grant {
        permission java.net.SocketPermission "localhost:1527", "listen";
    };
    

提交回复
热议问题