| |
|
In order to use microphone input (as well as read and write to local files and access foreign domains), an applet must be signed.
Signing an applet with a self-signed certificate is relatively painless. Signing an applet with a trusted certificate requires purchase of a certificate from a certification authority. The steps for self-signing are outlined below.
1. Generate a key
At the command line, enter the following code, then follow the instructions as presented (theKey can be replaced with whatever name you desire):
keytool -genkey -alias theKey
2. Sign your applet with the key
Now enter the following code, replacing theApplet.jar with the name of your applet (if you changed theKey to something else above, change it here too):
jarsigner theApplet.jar theKey
3. Upload your applet as usual.
You're done!
|