Hmmm - since this is handled by the JVM, I went a little deeper into the OpenJDK VM source code, thinking that it is possible that OpenJDK is done that mimics what has been done in Java 6 and earlier. Not sure if there is a way to do this otherwise than on Windows.
On Windows , the OpenJDK function get_temp_directory() makes a call to the Win32 API on GetTempPath() ; this is like in Windows, Java reflects the value of the TMP environment variable.
On Linux and Solaris , the same get_temp_directory() functions return the static value /tmp/ .
I donβt know if the actual JDK6 conforms to these exact conventions, but the behavior on each of the listed platforms seems to be what they do.
delfuego Dec 17 '09 at 21:02 2009-12-17 21:02
source share