Hello everyone,

I am using Log4j for logging in my products. This is working fine on my hard
drive, all logging are works. But if copied my application on CD/DVD then
log4j gives exception, I want if log4j die then Application should works.

I am getting the following exception while running on CD/DVD;

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: Logs\MyInfo.log (Access is denied)
       at java.io.FileOutputStream.openAppend(Native Method)
       at java.io.FileOutputStream.<init>(Unknown Source)
       at java.io.FileOutputStream.<init>(Unknown Source)
       at org.apache.log4j.r.a(Unknown Source)
       at org.apache.log4j.r.f(Unknown Source)
       at org.apache.log4j.s.f(Unknown Source)
       at myapplication.a<init>(Unknown Source)
       at myapplication.main(Unknown Source)

Please suggest me..
--
Thanks,
Laxmilal menaria

http://www.minalyzer.com/
http://www.chambal.com/

Reply via email to