开发者

Grant security permission to an applet compressed into an JAR file

开发者 https://www.devze.com 2023-03-31 09:50 出处:网络
I have created a standalone java app that uses a MySQL DB. I need to give security permissions to the applet inside the jar file. How do i do it without making the user do anything m开发者_Python百科o

I have created a standalone java app that uses a MySQL DB. I need to give security permissions to the applet inside the jar file. How do i do it without making the user do anything m开发者_Python百科ore than just a double click on the jar file?


A standalone Java application, which is not an applet, will not have a security manager present unless one is explicitly set, so permissions are not necessary. That is to say, the code will not have full permissions, but nothing should be checking anyway (it is still possible to tell the lack of permissions through java.security.AccessController).

0

精彩评论

暂无评论...
验证码 换一张
取 消