そうですね、私はアプレットの形でテキストベースのRPGを作成しています。このアプレットは、開いたときにAPPDATAディレクトリに書き込みます。IDEで動作しますが、Firefoxで試してみると、エラーメッセージが表示されます。こちらがリンクです。
File otherWorldDirectory = new File(System.getenv("APPDATA") + "\\.otherWorld");
if (!otherWorldDirectory.exists()) {
//Adding the folder .otherWorld to the APPDATA
otherWorldDirectory.mkdir();
System.out.println("Directory '.otherWorld' created.");
} else {
//The folder .otherWorld already exists.
System.out.println("Directory '.otherWorld' is not created, it exists.");
}