Applet - Unable to write file

久未见 提交于 2019-12-02 09:42:40

That's because applets live there own sandbox, where they require special permission to perform certain operations, like read or write the disk of a client machine. Remember, applets execute within the context of the client machine, they are guests and need to follow the house rules

Check out What Applets can and cannot do for more details

An applet cannot establish a File on the server. That is not how servers work. If a server accepts uploads, it must provide specific functionality to enable that and the applet must use that functionality.

As long as the functionality to accept an upload is on the same server, the applet can remain sand-boxed.

you can see the console for applets via the (windows) taskbar, you right click the java icon(when applet is running it should appear on the lower right) and right click > open console, you can debug there, this is where the stack trace of an applet goes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!