|
I
think classpath is for java class loader to find java class not for properties
files.
If
your question is how can I load properties files from local file
system without put the full path or the root path of the
files in java code, here is the thing
you do:
put
this line in you code:
System.out.println("user dir: " +
System.getProperty("user.dir"));
It
will tell you where is you user dir. The rest thing is putting your files in
that dir or a subfolder of it.
Usually you app server will be chick off at a default working directory,
so user dir is not changed.
Hope
this answers your question.
King
|