Find user independent TEMP directory with Java
Posted
by GHad
on Stack Overflow
See other posts from Stack Overflow
or by GHad
Published on 2009-11-10T10:31:55Z
Indexed on
2010/05/11
16:04 UTC
Read the original article
Hit count: 158
java
|temporary-directory
Hi,
when running a Java application as service with the user 'LocalService', the temp directory ("java.io.tmpdir") points to 'c:/windows/temp' (for example).
Running a Java application normally gives 'c:/documents and settings/user/local settings/temp' instead.
How can I determine the user independent temp folder 'c:/windows/temp' when my application runs normally?
Thanks and greetings, GHad
© Stack Overflow or respective owner