When I try to make a RMI connection with my client application, I get AccessControlException.
Solution for that would be configuring the security policy like that:
java -jar -Djava.security.policy=client.policy runme.jar
The client.policy file:
But the instructions clearly say that: "Your programs must not require use of command line property specifications".
So what are my options?
I have read that security policy is only required when the stubs are not provided, but I have included them - how do I test that anyway?
Joined: Nov 18, 2003
Ok, found it.
The problem was, that I set new security manager in my code:
Just had to delete it and it worked fine. I accidentally copied that code from RMI tutorial.