开发者

Write log from applet, while debugging in eclipse

开发者 https://www.devze.com 2023-03-14 22:31 出处:网络
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,

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

精彩评论

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

关注公众号