when i try to run the example given in the rmi trails of oracle
java tutorial given at
http://docs.oracle.com/javase/tutorial/rmi/running.html. i get the following exception while running the server program
C:\Users\gurpreet>java -cp D:\home\ann\src;D:\home\ann\public_html\classes\compu
te.jar -Djava.rmi.server.codebase=file:/D:/home/ann/public_html/classes/compute.
jar -Djava.rmi.server.hostname=mycomputer.example.com -Djava.security.policy="F:
\server.policy" engine.ComputeEngine
ComputeEngine exception:
java.security.AccessControlException: access denied ("java.net.SocketPermission"
"127.0.0.1:1099" "connect,resolve")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at engine.ComputeEngine.main(ComputeEngine.java:34)
uptil now i have compiled all the source files as mentioned in the tutorial. then i started the registry.when i tried to start the server program which in the tutorial is ComputeEngine it gives above exception. please help