我正在尝试在我的 Mac 上通过 netbeans 启动 Java DB。我收到以下错误:
Thu Sep 05 21:47:23 EST 2013 : Security manager installed using the Basic server security
policy.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:600)
at com.mysql.jdbc.NonRegisteringDriver.acceptsURL(NonRegisteringDriver.java:248)
at java.sql.DriverManager.getDriver(DriverManager.java:273)
at org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(Unknown Source)
at org.apache.derby.drda.NetworkServerControl.main(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
at java.security.AccessController.checkPermission(AccessController.java:560)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:706)
at com.mysql.jdbc.StringUtils.<clinit>(StringUtils.java:70)
... 7 more
所有配置文件夹都在正确的位置。
无法弄清楚发生了什么。