3 Replies - 937 Views - Last Post: 06 August 2012 - 04:30 AM Rate Topic: -----

#1 M4trixSh4d0w  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 79
  • Joined: 07-May 10

Read mp3 file access denied

Posted 05 August 2012 - 09:31 PM

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

Is This A Good Question/Topic? 0
  • +

Replies To: Read mp3 file access denied

#2 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon

Reputation: 5597
  • View blog
  • Posts: 9,030
  • Joined: 19-March 11

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.
Was This Post Helpful? 1
  • +
  • -

#3 M4trixSh4d0w  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 79
  • Joined: 07-May 10

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.
Was This Post Helpful? 0
  • +
  • -

#4 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2146
  • View blog
  • Posts: 8,920
  • Joined: 20-September 08

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1