Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

security exception in Browser

 
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
 
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
 
machines help you to do more, but experience less. Experience this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic