Hello,
I have got a problem concerning the setting of a system property.
When I run a first time my program I test a case by setting a system property, that works fine.
Now I want to change the same property in the same JVM by doing:
System.setProperties("key","oldvalue");
System.getProperties("key", "oldvalue"); //I obtain oldvalue
System.setProperties("key","newvalue");
System.getProperties("key", "newvalue"); //I obtain newvalue
But apparently it seems the JVM doesn't take the new value of the property even if the getProperty() give me the new value.
So my question is can I change several times the value of a same property in the same JVM or it is technically not possible?
I read the tutorial about System and it says :"The setProperties method changes the set of system properties for the current running application "
Thank you for any assistance