Hallo,
I'm trying to load a separate config file (log4j.xml) within a jar-File. It is
an applet and I want to load a config file located within a package.
I tried it like this:
URL path2Conf =
this.getClass().getClassLoader().getResource("de/xyz/log4j/applets/log4j.xml");
DOMConfigurator.configure(path2Conf);
But the java console of the browser says, the DOMConfigurator wants to load the
XML from
C:\Programme\Mozilla Firefox\de\xyz\...\log4j.xml
The same with:
String path2Conf = System.getProperty("user.dir") + File.separator +
"de\\hes\\log4j\\applets\\log4j.xml";
DOMConfigurator.configure(path2Conf);
Has anyone an Idea how to load a config file located within a package?
Thanking you in anticipation,
Gerrit
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]