Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4404132

Java Sound Demo: Applet Info in JavaSoundApplet needs to specify the directory o

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.1
    • client-libs

      STEP TO REPRODUCE:

      1. Install Ladybird b13 on local system.

      2. Set the JAVA_HOME and PATH to the current Ladybird b13 build.

      3. CD into the demo/sound directory and run the JavaSoundApplet demo by entering the following command:

      appletviewer JavaSound.html


      RESULT:

      When the JavaSoundApplet opens, the Applet Info pops out giving the following info:

      " When running the Java Sound demo as an applet these permissions are necessary in order to load/save files and record audio:

      grant {
      permission java.io.FilePermission"<<ALL FILES>>", "read,write";
      permission javax.sound.sampled.AudioPermission "record";
      permission java.util.PropertyPermission "user.dir", "read";
      };

      The permission need to be added to the .java.policy file. "

      However, if user want to update .java.policy file, she/he would probably does not know the directory of the .java.policy file. Either the README.txt contain the needed info for me to find the .java.policy file. To make jdk sound demo more user friendly, I suggest to specify the .java.policy directory in the Applet Info dialog box. The permission will affect the "Capture/Playback" section of the sound demo.

            amenkov Alex Menkov
            hchensunw Heidi Chen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: