Chargement des propriétés log4j à partir d'un package dans Java

Dans mon application java swing-je charger des propriétés log4j à partir d'un fichier de propriétés stockées dans un package dans l'application et j'ai charger ce fichier de propriétés comme,

try {                            
     PropertyConfigurator.configure("conf/log4j.properties");
     logger.info("Starting the system.");                           

} catch (Exception e) {
     e.printStackTrace();

}

Puis-je obtenir le message d'erreur suivant lorsque l'application démarre,

log4j:ERROR Could not read configuration file [conf/log4j.properties].
java.io.FileNotFoundException: conf/log4j.properties (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:97)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
        at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
        at com.bio.ofm.mnu.views.SplashScreen$1.run(SplashScreen.java:70)
        at java.lang.Thread.run(Thread.java:722)
log4j:ERROR Ignoring configuration file [conf/log4j.properties].
log4j:WARN No appenders could be found for logger (com.bio.ofm.mnu.views.SplashScreen).
log4j:WARN Please initialize the log4j system properly.

Est cette façon de chargement de fichier de propriétés est mal? s'il vous plaît aider.

- Je construire un .jar fichier et exécutez l'application à l'aide de ce pot**

source d'informationauteur Harsha