Link to home
Start Free TrialLog in
Avatar of csalem05
csalem05

asked on

cant find temp directory with applet in vista

I have a java applet that needs to write files into the temp directory.  The problem is that on vista the function System.getProperty("java.io.tmpdir") doesn't return anything, the applet is signed and the function is access controlled.  I tried it with both j2se 5 and 6. Where are applets allowed to write to in Vista?
Avatar of Mayank S
Mayank S
Flag of India image

You mean It returns null?
Avatar of csalem05
csalem05

ASKER

yes, it returns null.
See if you can access any other property like "java.version" or "user.name" to make sure if that's the only property which is not getting returned or if its a general problem.

BTW this says that even a signed applet on Vista has fewer permissions than on other Windows platforms:

http://java.sun.com/javase/6/webnotes/#windowsvista
no, nothing works... We're not using a policy file, do we need that?
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial