Access denied while SMLogin

I'm learning to use the SunMC Client API. I use the Eclipse for JAVA 3.0. IDE. I copied the code of the SMLoginTest.java from the SunMC 3.5.1 Developer Reference Guide. I tried to execute it. Unfortunately, I got a serial of java.security.AccessControlException: access denied (xxxxx).

I ran the code with the 'Administrator' priority in my PC with a Win2000 professional OS installed with J2SDK1.4.11. The SunMC Server 3.5.1 I used for my study is installed on a Sun Netra-t120.

I know I can solve those AccessControlExceptions by adding "permission xxxxx" entries to the %JRE_HOME%\lib\security\java.policy file. But it's very inconvenient for users to do like this.

Any suggestion and idea to solve this problem are appreciated!

Thanks a lot in advance!

[791 byte] By [Bequied] at [2007-11-26 11:43:54]
# 1
HiCould you please elaborate a bit more on how you are using it. Like ..Is there any firewallRegardsGaurav
GauravMisra at 2007-7-7 11:52:00 > top of Java-index,Administration Tools,Sun Management Center...