grant ability to list files in the user's home directory
grant codeBase "http://127.0.0.1/-" { permission java.io.FilePermission "${user.home}", "read"; };