看其他东东的时候正好看到有这么一段:
Note that the System
properties are initialized in the java.lang.System
class's initProperties
method. This is a native method, so the source code is unavailable—unless you want to dig into the native code libraries that come with the J2SE distribution. However, I believe that the System
properties are initialized from the Windows registry on Windows systems and from environment variables on Linux/Unix systems.