Hi! First time caller, long time listener.
I'm getting an access denied error trying to load a midi file on the server, in a subdirectory of the
applet's folder. As in, the applet root/ffp.class, on webpage root/ffp.htm, is trying to access root/mid/wm0.mid, and is denied access.
It works fine when I run the applet on my hard disk, but run from the server it throws an AccessControlException (access denied). This is odd, because I can put the same midi file into an AudioClip and run it with no problem. However, I don't have much control over playback with AudioClip and prefer to use a midi sequencer. I'm trying to load the midi file as a FileInputStream which, again, works fine when I run it on my hard disk, but doesn't work once I upload it onto the server.
Shouldn't the applet already have access to files in subdirectories without modifying permissions? Especially if the applet can already access the same files as a different data type? I feel like I'm missing something here.
The code is basically the following:
The line that calls MidiSystem.getSequence throws the following error:
Would very much appreciate any help.