I’m getting this error in my applet when I run the applet embedded in a webpage:
acess denied (“java.net.SockerPermission” “irc.esper.net” “resolve”)
It works fine when I run the applet otherwise…
How do I fix this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its just like this. You dont talk to strangers! the same way, an unsigned applet is a stranger if it is accessing from outside. Signing is just a process of establishing a trust between two entities. that is your system shall agree to provide permissions for this applet on a run.
You need to sign the applets using a digital certificate. i think you have a basic idea on certificates. you can generate certificates using
keytoolin java. After you generate, there should be a common trustee (Certified Authority[CA]) to say your certificate is valid and not a fake one. the imprint of that CA is called signed certificate.You can also have a self-signed certificate. But the browsers will show a warning that certificate is not trusted, and ask the user that whether to trust?!. If user says Ok, then ur certificate is added to browsers Truststore.
Please go through some documentations on this. http://www.herongyang.com shall be a good option for some hand-on!