• Post Reply Bookmark Topic Watch Topic
  • New Topic

security exception in Browser

 
Clara Hall
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My applet needs to access the file system of the local machine. And I set up a policy file to grant the required permission. When I use appletviewer to run the applet, it works fine. But when I try to use netscape to run the applet, I got security exception. Is there anything needs to be configured in netscape? How about IE? Thank you.
Clara
 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
To grant access to the client system, u need to sign ur jar file using a certificate. And u need to down load the certificate. This appoach is fine till JRE1.3
It doesnt work in JRE1.3.1
And in JRE1.4 beta u dont have to sign the jar file atall.
So first u tell me which jre are u using??
regards
Saj
 
Clara Hall
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thank you for your reply. I am using JDK 1.3.1.
So, you mean I need to sign it if I want to use web browser to run my applet eventhough the "SignedBy" field in my policy file is empty? Thank you.
Clara
 
Clara Hall
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, missed one sentence.
As you mentioned, this method doesn't work for JRE 1.3.1. Then what should be done for JRE 1.3.1? Thanks.
Clara
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!