我有以下行导致此错误消息在 JNLP 下运行:
java.security.AccessControlException: access denied (javax.sound.sampled.AudioPermission record)
at java.security.AccessControlContext.checkPermission(Unknown Source)
TargetDataLine targetDataLine.open(audioFormat);
如何解决?或者这是否意味着在 JNLP 中,我们不能录制声音?
PS:我没有在全权限模式下运行它,因为它需要第三方付费证书。在我可以将我的应用程序提交到 Sun 的 Java 商店之前签署 jar。我想知道是否还有其他方法,例如使用 JNLP 的 FileSaveService / FileOpenService ?
坦率