> G:\java\RMI\MySPyWatcher\with screenshot\built1>java MySpyServerImpl
> Sorry dude!!!java.security.AccessControlException: access denied
[quoted text clipped - 3 lines]
> Could you please help me with this?Has it got anything to do with the
> PORT issues of SP1 XP?I have heard something of that sort.Plz help
AccessControlException (extends SecurityException) is an exception from
security imposed by Java. It is not due to the operating system. Your
code needs the permissions specified in the error message.
Presumably you are setting an RMISecurityManager (which isn't actually
any different to SecurityManager) in order to download code from the
remote host (in this case it's just a loopback). Two easy options are to
supply a java.policy file to grant those permissions, or override
SecurityManager.checkConnect to skip the check.
Tom Hawtin
John Ersatznom - 18 Dec 2006 04:41 GMT
>> G:\java\RMI\MySPyWatcher\with screenshot\built1>java MySpyServerImpl
>> Sorry dude!!!java.security.AccessControlException: access denied
[quoted text clipped - 15 lines]
>
> Tom Hawtin
Personally, I'd be sure to learn this stuff and understand exactly what
the security model and threat model of the system is before granting new
permissions in some sort of remotely-accessible system, but hey, that's
just me. :)
nandu - 18 Dec 2006 18:03 GMT
> > G:\java\RMI\MySPyWatcher\with screenshot\built1>java MySpyServerImpl
> > Sorry dude!!!java.security.AccessControlException: access denied
[quoted text clipped - 13 lines]
> supply a java.policy file to grant those permissions, or override
> SecurityManager.checkConnect to skip the check.
Tahnk you very much for that timely help Mr Tom.Would definitely get
back to you after I resume my work on it after my Tests
> Tom Hawtin