开发者

Write log from applet, while debugging in eclipse

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜