FYI: Java 5 Update 4 changed the default for java.io.tmpdir
FYI: Java 5 Update 4 changed the default for java.io.tmpdir
- Subject: FYI: Java 5 Update 4 changed the default for java.io.tmpdir
- From: Timo Hoepfner <email@hidden>
- Date: Mon, 29 Jun 2009 10:19:23 +0200
Hi,
just FYI. Java 5 Update 4 changed the default for java.io.tmpdir. This
affects File.createTempFile(...).
Previously it would create paths like:
/tmp/FOO-2946977911338389380.tmp
Now it will create create paths like:
/var/folders/Lh/LhcGbUPf2RWMKk+1YwshfU+++TI/-Tmp-/
FOO-2946977911338389380.tmp
Depending on how you use it, this can cause problems. See these
discussions:
<http://lists.apple.com/archives/Java-dev/2009/Jun/msg00321.html>
<http://discussions.apple.com/thread.jspa?threadID=2041458>
You can restore the old approach by manually setting the
java.io.tmpdir property:
System.setProperty("java.io.tmpdir", "/tmp/");
Timo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden