Java.io.tmpdir Introduction
System.getproperty ("Java.io.tmpdir") is a temporary directory to obtain the operating system cache, different operating system cache Temp directory is not the same,
The cache directory in Windows is: C:\Users\ login user ~1\appdata\local\temp\
Linux:/tmp
System.getproperty (""), you can manipulate the parameters:
|
Java.version |
Java Runtime Environment version |
|
Java.vendor |
Java Runtime Environment Vendor |
|
Java.vendor.url |
The URL of the Java vendor |
|
Java.home |
Java installation directory |
|
Java.vm.specification.version |
Java Virtual Machine Specification version |
|
Java.vm.specification.vendor |
Java Virtual Machine specification provider |
|
Java.vm.specification.name |
Java Virtual Machine Specification name |
|
Java.vm.version |
Java Virtual Machine Implementation version |
|
Java.vm.vendor |
Java Virtual machine Implementation provider |
|
Java.vm.name |
Java Virtual Machine Implementation name |
|
Java.specification.version |
Java Runtime Environment Specification version |
|
Java.specification.vendor |
Java Runtime Environment Specification vendor |
|
Java.specification.name |
Java Runtime Environment Specification name |
|
Java.class.version |
Java Class format version number |
|
Java.class.path |
Java class path |
|
Java.library.path |
List of paths to search when loading libraries |
|
Java.io.tmpdir |
The default temporary file path |
|
Java.compiler |
The name of the JIT compiler to use |
|
Java.ext.dirs |
Path to one or more extended directories |
|
Os.name |
Name of the operating system |
|
Os.arch |
Architecture of the operating system |
|
Os.version |
Version of the operating system |
|
File.separator |
File delimiter ("/" in UNIX system) |
|
Path.separator |
Path Delimiter (":" In UNIX system) |
|
Line.separator |
Row delimiter ("/n" in UNIX system) |
|
User.Name |
User's account name |
|
User.home |
User's home directory |
|
User.dir |
User's current working directory |
Such as:
System.out.println (System.getproperty ("Java.io.tmpdir"));
C:\Users\Kim\AppData\Local\Temp\
System.out.println (System.getproperty ("Java.vendor.url"));
Where is the path specified by the
Java.io.tmpdir?