I am trying to write a log file from an applet.
When running as a Java application, I am able to write to 开发者_如何学Pythonthe files,
but when running as an applet, I get .\logs\test.log (The system cannot find the path specified)
.
How do I permit it to write to disk, while debugging using eclipse?
EDIT: is it because of the backslashes?
You should write whatever you want from applet in temp file, to create temp file Try this . Also you get system temp folder in java and create your file there, Read this. @Yoni is right you have limited permissions when you are in applet.
精彩评论