NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

log4j

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
senderj



Joined: 10 Oct 2008
Posts: 22

PostPosted: Thu Mar 05, 2009 10:16 am    Post subject: log4j Reply with quote

In my project's run property, I set the working directory to
Code:
C:\Dev\java\NetBeans_projects\stock\files
, and VM Option
Code:
-Dlog4j.configuration=file:log4j.properties
. I put the log4j.properties file in the "files\" folder. But it didn't work. When run my program it couldn't find the properties file.

I have to change the VM Option into
Code:
-Dlog4j.configuration=file:\Dev\java\NetBeans_projects\stock\files\log4j.properties
then it works. Why? From where would Netbean look for the file if I just put
Code:
file:log4j.properties
?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo