Java - How to get permission in Java Web Start

前端 未结 3 1639
余生分开走
余生分开走 2020-12-19 18:16

Hi managed to create the jar and .jnlp files for my Java application but running into trouble when it runs. Launches okay with Java Web Start but I think I need to do someth

相关标签:
3条回答
  • 2020-12-19 18:33

    Add the following to your JNLP:

    <security>
      <all-permissions/>
    </security>
    

    This will pop a dialogue asking the user the give the necessary permission to your app.

    0 讨论(0)
  • 2020-12-19 18:54

    If you want access to the file system you need to change your JNLP file to include:

    <security><all-permissions/></security>
    

    This requires you to also sign your jar files.

    Another option is to package the file inside the jar as a resource and you don't have to do all that.

    0 讨论(0)
  • 2020-12-19 18:55

    You need to sign your JNLP file and configure the <security> element, as discussed here.

    0 讨论(0)
提交回复
热议问题