错误已经提示的很清楚了呀。是applet的安全问题。我想你一定是用applet与别的服务器通信吧。这在applet是不被允许的。applet只能与它的来源服务器通信。

解决方案 »

  1.   

    The problem you are having is because applets by default cannot open stream to read or write from the disk (file streams) and they cannot connect to systems other than the one on which they were originally stored. The security on the applet means you must run the browser on the same machine where your web server runs (which makes no sense to have it on a web site that way!) I am also looking for an answer as to how I can set the permissions on my applet to allow it to create my server socket and my client sockets to their machines. I want to be able to have many clients connecting from remote locations to my machine and open a socket to talk to my server. When I debug it with Cafe 3 on the local machine, it works, but when I run the applet in a browser, the whole thing goes kaboom. Massive security errors appear in the Java Console and I can't seem to find docs on how to get around this. I am told that maybe the applet has to be signed? or maybe I will have to implement security... Hmmm