Can you please tell what is significance of "java.io.tmp" directory?
I noticed this directory is created under webapps folder in my tomcat.
Thanks!
Can you please tell what is significance of "java.io.tmp" directory?
I noticed this directory is created under webapps folder in my tomcat.
Thanks!
It is not directory, it is property points to a directory to be used as temp folder(directory happens to have same name as property is a tomcat decision). When you want to create temporary file, this property is used as the location for the file. Some example
File tempFile = File.createTempFile("pattern", ".suffix");
tempFile.deleteOnExit();
JVM by default copies the value from TMP/TEMP environment variable. The value can be set when JVM starts. Tomcat sets this for rest of the application to use.
The name itself is a great clue. Its java.IO.TMP, which common sense would tell us is about temporary ios. Since the java.io package is about files then it probably adds up this is a path to store temporary files.