• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How browser comes to know that this applet is going to acess the local file system?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have noted that the applet doesn't loaded when there is a code inside it that access the local file system. My question is that how browser comes to know just by reading the bytecode that this appplet is going to access the localfile system before executing the it?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't. The browser will load any applet, no matter what it does. It may throw exceptions because some operations are not allowed. Of course, if a disallowed operation happens in a constructor or static initializer, the applet can't be initialized properly, and won't run be able to run (in which case the browser may display a mesaage saying that the applet can't be loaded).
[ August 12, 2005: Message edited by: Ulf Dittmer ]
 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which browser are you using?
There are differences between NS and IE when it comes to FilePermission errors. NS seems to quit before telling you the full story, IE is better with its error messages and access to the Java Console.
Also which version of the jre are you using?
All this detail can be meaningful in solving a problem
 
please buy this thing and then I get a fat cut of the action:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic