Results 1 to 2 of 2
  1. #1
    Basit56 is offline Member
    Join Date
    Aug 2009
    Rep Power

    Unhappy Applet throws exception while recording

    Hi to all :),
    Hope everyone will be fine.i have a recorder applet but when i try to record sound it will give message that denied(javax.sound.sampled.Audio Permission record)

    when searching i found this is a certificate issue you need to sign your jar so i follow tutorial which i attached as a file so you better understand what i did but after following all the steps i again got the exception.
    when you see the file it says make policy file with the code written in it, i want to ask where i put this policy file in the same folder where my source file and class file are present or somewhere else or how i make policy file simply create a file copy the code in it and name it with policy extension or by using some tool.

    one more confusion actually we have a server in which email client is installed and we embedded this player in to email client so you can record your message and leave voice mail. It works fine because it contain signed jar and certificate.Now i modify the applet on my windows system and in the start i don't know that you should sign your applet before using it on the web.So i replace the folder which contain applet certificate with the my modified applet after taking backup of the working folder and it throws above mentioned exception and it will because my applet jar was not signed.
    The problem is when i again replace it with the old working files it didn't work and it continue to call my modified applet even it is not in the folder.
    i copied file from windows to linux using winscp
    Please help me how can i make my recorder working again.Thanks in advance
    Attached Files Attached Files

  2. #2
    Basit56 is offline Member
    Join Date
    Aug 2009
    Rep Power

    Thumbs up

    Hi :)
    Hope you all are fine.The second part is solved actually its a cache problem, java store files in a special directory for quick access so i delete files from java cache and now the old applet is in workable condition :) but please reply for first part, what is the problem actually i think its a policy file issue, the placement of policy file in a right folder, i try myself also and if i solve it i let you inform that how i did it

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2009, 11:59 AM
  2. Problems with Java Audio Recording
    By in forum Advanced Java
    Replies: 2
    Last Post: 03-27-2009, 10:18 AM
  3. Exception throws when I read File
    By Juggler in forum New To Java
    Replies: 11
    Last Post: 08-18-2008, 06:09 PM
  4. Main method with throws Exception
    By bugger in forum New To Java
    Replies: 3
    Last Post: 01-07-2008, 02:48 PM
  5. throws Exception
    By javaplus in forum New To Java
    Replies: 1
    Last Post: 11-06-2007, 07:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts