Java mac temp directory access denied
===

For some reason, writing to the user's temp directory works in windows, linux, and my Mac Lion, but for users in Snow Leopard and below, it fails with this exception:

    Write denied: /var/folders/Zw/ZwKucIEzGMqxGV8QhkAUC    TI/-Tmp-/330979.tmp on AWT-EventQueue-0/main
    Exception occurred during event dispatching:
    java.lang.SecurityException
    at org.stackoverflow.a(Unknown Source)
    at org.stackoverflow.s.f.checkWrite(Unknown Source)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:183)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:145)

As you can tell from the stacktrace (checkWrite), I am using a SecurityManager. I assume the write denied is because of that, but why would that deny a write on only snow leopard and below?