允许Java小程序到文件系统的访问和记录而不修改Java策略文件? [英] Allow Java applet to file system access and recording without modifying java policy file?

查看:178
本文介绍了允许Java小程序到文件系统的访问和记录而不修改Java策略文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写Java applet的声音记录,所以它需要有记录的权限,也需要有文件访问(MP3转换期间存储TMP文件)。这是一个Intranet应用程序,这将在夫妻数百台计算机上运行,​​所以我不知道是否有可能实现,如果没有修改政策文件,并在每台机器上授予权限。


解决方案

  

..所以我不知道是否有可能实现,如果没有修改政策文件,并在每台机器上授予权限。


当然。数字签名使用有效code签名证书的code,并得到用户启动应用程序时,勾选总是允许复选框。

除非你的意思是没有数字签名的code'。然后 - 不,这不是

I'm writing java applet sound recorder, so it needs to have recording permission and also needs to have file access (for storing tmp files during mp3 conversion). It's an intranet application which will run on couple hundreds machines so I wonder if it is possible to achieve that without modifying policy file and granting permissions on each machine.

解决方案

..so I wonder if it is possible to achieve that without modifying policy file and granting permissions on each machine.

Sure. Digitally sign the code using a valid code signing certificate, and get the user to tick the 'always allow' check box when launching the app.

Unless you mean 'without digitally signing the code'. Then - no, it isn't.

这篇关于允许Java小程序到文件系统的访问和记录而不修改Java策略文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆