• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
prithvi s zankat
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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 ]
 
Norm Radder
Rancher
Posts: 1651
22
  • Mark post as helpful
  • send pies
  • 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!