How to publish a Java Web Start jnlp application without security warnings?

前端 未结 2 1640
自闭症患者
自闭症患者 2021-01-15 11:24

I have a Java application that is launched from a jnlp file off of a website. I\'m trying to get it to run without flashing up a bunch of security warnings before it runs.

相关标签:
2条回答
  • 2021-01-15 11:52

    Yes , you have to update all jars
    You can add these properties directly into manifest of the jar files (all jars) from a file -

    In your plugins directory :

    jar ufm <jar_file> additionalAttribute.txt
    

    This additionalAttribute.txt will contain your additional manifest attribute like -

    Permissions: all-permissions  
    Codebase: *  
    Application-Name: My App  
    Caller-Allowable-Codebase: *  
    Trusted-Library: true
    Application-Library-Allowable-Codebase: *
    
    0 讨论(0)
  • 2021-01-15 12:14

    Do I have to update the jar manifest for the third-party libraries that I'm using as well?

    Yes. All parts, all Jars of our applications have the same security requirements.

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