Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use log4j in eclipse

Status
Not open for further replies.

yytan

Programmer
May 8, 2002
113
MY
hi;

i'm using eclipse3.0, jdk1.4.2, log4j1.2.8 run on win2k

i'm having error:

log4j:ERROR Could not read configuration file [config.properties].
java.io.FileNotFoundException: config.properties (The system cannot find the file specified)

the method i'm using
PropertyConfigurator.configure("config.properties");
the properties file is located in the same dir of my java app, pls help.
 
i've resolved it, just realized i need to put the properties file outside the package.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top