If I remove FilePermission from the policy, program throws error on opening a config file. So fist setting solves this problem. However no matter what I do with the second setting for Socket Permission, it keeps giving me error when I run the program:
java.security.AccessControlException:access denied (java.net.SocketPermission 172.20.68.45:1521 connect, resolve.
Can someone tell me why? Thanks.