Unable to set System properties using java.util.Properties.load()

/**

* wrapper for {@link java.util.Properties} load

*/

publicsynchronizedvoid load(){

try{

System.out.println("filePath = " + filePath);

String[] javaClassPathArray = System.getProperty(filePath).split(separator);

String myFileName;

for (int i = 0; i < javaClassPathArray.length; i++){

myFileName = javaClassPathArray[i] + File.separator +

className +"globals.properties";

if (FileFunctionality.isFile(myFileName)){

System.out.println("myFileName = " + myFileName);

// USE PARENT Properties load() METHOD

load(new FileInputStream(myFileName));// NOT OVERWRITTEN HERE

System.setProperties(this);

break;

}

}

}catch (Exception e){

e.printStackTrace();

}// DO NOTHING JUST WON'T LOAD ANYTHING

}

Based on tutorials I've read setting new System properties from a .properties file (see http://www.exampledepot.com/egs/java.util/Props.html ), I am still unable to set new System properties using a .properties. I can confirm using System.getProperties().list(System.out) that no such properties exist in spite of my setting them via this methodology that I learned.

So since this appears to be wrong, what really is the right way to set System properties using a .properties file?

Thanx

Phil

[2184 byte] By [ppowell777a] at [2007-11-26 19:44:08]
# 1
Here's a tutorial on doing that http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html
ChuckBinga at 2007-7-9 22:28:03 > top of Java-index,Java Essentials,New To Java...
# 2
> Here's a tutorial on doing that> http://java.sun.com/docs/books/tutorial/essential/envi> ronment/sysprop.htmlTurns out I wasn't doing the part of setting via super(System.getProperties()) as my class extends Properties, so thanx!
ppowell777a at 2007-7-9 22:28:03 > top of Java-index,Java Essentials,New To Java...