D
Daniel
I have this in my policyfile
grant{
permission java.net.SocketPermission "localhost:1099", "connect, resolve";
permission java.net.SocketPermission "localhost:1024-", "connect, resolve";
permission java.net.SocketPermission "localhost:1024-", "accept, resolve";
permission java.net.SocketPermission "localhost:5432", "connect, resolve";
};
in dos.
H:\sapa>java -D java.security.policy=H:\sapa\local.policy -cp "H:\sapa\sapa"
RMIServer
Exception in thread "main" java.lang.NoClassDefFoundError:
java/security/policy=
H:\sapa\local/policy
I always get this error message, I dont understand. The classes are all in
h:\sapa\sapa and the policy file is in h:\sapa\
Why does the compiler never have mercy on me? I compiled the RMIServer
without problems. WHen i start the server it gives me an eroor:
Exception: java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:5432 connect,resolve)
My database runs under postgres, without the whole RMI statements the
application works, Why cant i set the policy file?
Thanks in advance
Danny
grant{
permission java.net.SocketPermission "localhost:1099", "connect, resolve";
permission java.net.SocketPermission "localhost:1024-", "connect, resolve";
permission java.net.SocketPermission "localhost:1024-", "accept, resolve";
permission java.net.SocketPermission "localhost:5432", "connect, resolve";
};
in dos.
H:\sapa>java -D java.security.policy=H:\sapa\local.policy -cp "H:\sapa\sapa"
RMIServer
Exception in thread "main" java.lang.NoClassDefFoundError:
java/security/policy=
H:\sapa\local/policy
I always get this error message, I dont understand. The classes are all in
h:\sapa\sapa and the policy file is in h:\sapa\
Why does the compiler never have mercy on me? I compiled the RMIServer
without problems. WHen i start the server it gives me an eroor:
Exception: java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:5432 connect,resolve)
My database runs under postgres, without the whole RMI statements the
application works, Why cant i set the policy file?
Thanks in advance
Danny