I am sorry for not being very clear on this. Hope this helps.
This link has the "QuoteServer" example which is on the same lines as my project.
http://engronline.ee.memphis.edu/advjava/Examples/RMI/rmi_example.htm In the above example I compile all four files and then generate rmic for applet and server. Then I place all the class files and the related html for the applet in TOMCAT.
Policy file:
grant {
// Allow everything for now
permission java.security.AllPermission;
permission java.net.SocketPermission "*:1024-65535", "connect,accept";
permission java.net.SocketPermission "*:80", "connect";
};
Then I start my TOMCAT and then the server with codebase=http:\\localhost:8080\(my folder)\ and the security file as mentioned above. So far so good.
The problem occurs when I start my applet as
appletviewer -J-Djava.security.policy="above file here" http:\\localhost:8080\page.html
Also when I loaded the applet in IE I got the AccessControlException:access denied. Can you also direct me as to how to direct the above security policy file in IE?
Thanks in advance for your patience. I hope I am clearer this time. Please let me know if more details are required.
Appreciate your help.