agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] reading a file
Date: Thu, 11 Nov 2004 22:46:37 +0200
Message-ID: <4193CFAD.3090406@aldratech.com> (raw)
In-Reply-To: <thhal-0UV9vAvFgby4XuIsvFB4e0Uth9zp9hk@mailblocks.com>
References: <000901c4c826$a24c2c30$cd8055aa@ftgebus33>
	<4193C6CD.1040700@mailblocks.com>
	<thhal-0UF9vAu9gby4+GyfKzwWysQu9b865eo@mailblocks.com>
	<thhal-0UV9vAvFgby4XuIsvFB4e0Uth9zp9hk@mailblocks.com>

Thomas Hallgren wrote:
> Russ,
> 
>> Hi,
>> I wrote a Java class that needs to read in a properties text file.
>> Where should I put the properties file in the Postgres environment so
>> my class doesn't get a "File not found" error?
>> Thanks,
>> Russ
>>  
>>

I guess you can always use the classloader resource mechanism, and locate the 
property file[s] near your classes or in the jar.

HTH,
-- 
Radu-Adrian Popescu
CSA, DBA, Developer
Aldrapay MD
Aldratech Ltd.
+40213212243
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3206 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20041111/dc1a0e96/attachment.bin;



view thread (4+ messages)  latest in thread

Message-ID: <4193CFAD.3090406@aldratech.com>
Permalink:  ../4193CFAD.3090406@aldratech.com/
Also on:    postgresql.org/message-id/4193CFAD.3090406@aldratech.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] reading a file
  In-Reply-To: <4193CFAD.3090406@aldratech.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox