• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Problem in IO operation in java plugin

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means I have to ask my clients to migrate from MVM to java plug-in.One more problem I am facing with java plugin access problem
I am using following version of VM
Plug-in: Version 1.4.1_07
Using JRE version 1.4.1_07 Java HotSpot(TM) Client VM
Although I have signed my applet and also given explisit permission for fileIO in code like
if(System.getProperty("java.vendor").indexOf("Microsoft") != -1)
System.out.println("I am assigning permission");
catch(Throwable e)
System.out.println("some exception in asserting permission");
else if((System.getProperty("java.vendor").indexOf("Netscape") != -1) ||
(System.getProperty("java.vendor").indexOf("Apple") != -1) ||
(System.getProperty("java.vendor").indexOf("Sun") != -1))
catch(Throwable e)
But still it giving me following error on file reading......
access denied (java.io.FilePermission -------------------
But If i grant permission in the policy file in following manner
permission java.security.AllPermissions;
permission java.io.FilePermission
"E://pgp//My Testing//keyparse//privatefile", "read,write";
But i dont find this very impressive because i have to ask my clients specifcally for granting permission to do there specific file.
As above mentioned above granting permission in applet code.Although I tried it for sun vendor but its not working.
Please suggest....
Thanks and Best Regards
Amit Vishnoi
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic