Where's java.io.tmpdir?

Source: Internet
Author: User

Where's java.io.tmpdir?

Different operating systems The directory represented by this system property is also different

On Windows:java.io.tmpdir:[c:\docume~1\joshua\locals~1\temp\]

On solaris:java.io.tmpdir:[/var/tmp/]

On Linux:java.io.tmpdir: [/tmp]

On Mac OS x:java.io.tmpdir: [/tmp]

The default Temporary-file directory is specified by the system property Java.io.tmpdir. 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 given to this system property when the Java Vsan is invoked, but programmatic changes To this property is not a guaranteed to has any effect upon the the temporary directory used by this method.

java.io.tmpdirto specify the System property, you can invoke the JVM as follows:

Java-djava.io.tmpdir=/path/to/tmpdir

By default this value should come from the TMP environment variable on Windows systems

Where's java.io.tmpdir?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.