Thank you, but both ways arent good. To make a jar is bad because the config can not be easiely modified by customers or service stuff. To use a absolute path is bad because I'd cocoon & customer system specific jars. :(
But thanks anyway! Regards, Jan -----Ursprüngliche Nachricht----- Von: Jorg Heymans [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. September 2005 12:48 An: [email protected] Betreff: Re: AW: Position of folders and files in Cocoon The reason why your program cannot find the config files is because they are not in your classpath. One way of doing this is to put the files you need inside a jar (ie do "jar cvf lib\config.jar config" from your project dir). Alternatively make this into an absolute reference: public static final String LOGGIN_PROPS_DEFAULT_NAME = "d:/myprogram/config/logging.cfg"; [EMAIL PROTECTED] wrote: > Sorry I dont get you :( > What do I have to do exactly? > > Regards, > Jan > > -----Ursprüngliche Nachricht----- > Von: Jorg Heymans [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. September 2005 11:06 > An: [email protected] > Betreff: Re: Position of folders and files in Cocoon > > > [EMAIL PROTECTED] wrote: > > >>So my question is, where do I have to put my config and log folder >>that my classes used by cocoon (they are stored in cocoonc lib >>directoty in a jar >>file) can find it? >> > > > I'ld say "jar cvf config.jar config" and put config.jar in lib. > > > HTH > Jorg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
