Re: If i use System.getProperties(""),from where it gets the value.
Monday, March 31, 2003 07:34 AM
The System properties are going to be System wide (JVM), the properties will contain a specific list of key-values set on the initial call as well as any values specifically placed there by any running applications. For example if you are running within a Servlet-Container or an Application Server they (the Servlet Cotnainer or App Server) could set System properties ontop of the properties already set (eg java.version, java.vendor ... see javadocs ) Your application could also set System properties by explicitly calling the System.setProperty method. In your case it appears, though it's only a guess, that since the property is called "TestDirectory" that this is being set somewhere in your application, or another application running in the same JVM and not a Servlet-Container or App Server.