JDK-4404132 : Java Sound Demo: Applet Info in JavaSoundApplet needs to specify the directory o
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: x86
  • Submitted: 2001-01-12
  • Updated: 2006-05-31
  • Resolved: 2006-05-31
Related Reports
Duplicate :  
Description
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.

Comments
PUBLIC COMMENTS Applet Info in JavaSoundApplet needs to specify the directory of .java.policy
10-06-2004

EVALUATION michael.bundschuh@Eng 2001-02-08 Commit to fix in Merlin. ###@###.### 2002-04-16 The demo isn't part of the J2SDK anymore. This bug will be closed whenever the demo is updated in this regard.
08-02-2001