Hello, I am making a music player applet that loads mp3's and I finished it, except whenever I load it onto a website, then it doesn't work and gives me some kind of access denied for reading the mp3 file. I currently have horrible internet connection, so i am unable to open the java console so here is the link to the site where it is. just open the error console when it finishes loading. do you have any idea why it is blocked access?
The link
Read mp3 file access denied
Page 1 of 13 Replies - 937 Views - Last Post: 06 August 2012 - 04:30 AM
Replies To: Read mp3 file access denied
#2
Re: Read mp3 file access denied
Posted 05 August 2012 - 09:36 PM
If you're trying to load files on the local filesystem - or access anything on the local machine - from an applet, you're going to have to jump through some hoops to become a "trusted" applet - it's part of the applet security model.
Look up "signed applet" - the first entry should give you some useful information.
Look up "signed applet" - the first entry should give you some useful information.
#3
Re: Read mp3 file access denied
Posted 05 August 2012 - 10:16 PM
thanks for the help, it worked, but made another error. do you know any way to access jarfiles, (like a library api), from within the jar? if i try to get it to load it only loads from outside the jar, unlike images, which are loaded from inside.
#4
Re: Read mp3 file access denied
Posted 06 August 2012 - 04:30 AM
Quote
do you know any way to access jarfiles, (like a library api), from within the jar?
Include the jar(s) in the 'archive' attribute of the applet. Just import the classes and use as normal
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|