Oh my... I was trying FOR HOURS with combinations
System.getProperty("PHOENIX_HOME"); !
That's life... Works! Thanks a lot Steve!Isaac. -----Original Message----- From: Steve Short [mailto:[EMAIL PROTECTED] Sent: jueves, 17 de junio de 2004 20:21 To: James Developers List Subject: RE: james.getAbsolutePath ? Try this: String phoenixHome = System.getProperty("phoenix.home"); This'll give you the Phoenix home directory and you can work out the rest from there. Steve -----Original Message----- From: Intelekia [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 5:26 AM To: 'James Developers List' Subject: james.getAbsolutePath ? Hi all, Is there any way to obtain programmatically the folder where James is installed? I am thinking of something like: james.getAbsolutePath(); The reason is that currently I put the path to some resources in the config.xml and then load them at runtime. But if I use relative resources (like "../conf/resource.txt") they don't work when James is run as service (that is, from any other folder than $PHOENIX_HOME/bin. And hardcoding absolute paths is very, very nasty ;-) Thanks for any help that you can provide! Isaac. --------------------------------------------------------------------- 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]
