操作系统不同 这个系统属性所表示的目录也不同
On Windows:[C:\DOCUME~1\joshua\LOCALS~1\Temp\]

On Solaris:[/var/tmp/]

On Linux: [/tmp]

On Mac OS X: [/tmp]

The default temporary-file directory is specified by the system property On UNIX systems the default value of this property is typically "/tmp" or "/var/tmp"; on Microsoft Windows systems it is typically "c:\temp". A different value may be given to this system property when the Java virtual machine is invoked, but programmatic changes to this property are not guaranteed to have any effect upon the the temporary directory used by this method.

To specify the System property, you can invoke the JVM as follows: