Java WebStart和已签名的目录 [英] Java WebStart and endorsed directories
问题描述
如何在java webstart .jnlp文件中指定我的一些罐子覆盖了JRE内置实现?就像常规应用程序上认可的lib属性一样。
How do I specify in java webstart .jnlp file, that some of my jars are overriding the JRE builtin implementations? Just like the endorsed lib property on a regular application.
推荐答案
似乎没有办法在web start中定义已认可的目录。
It seems there is no way to define endorsed dirs in web start.
即使将java.endorsed.dirs属性定义到某个本地目录也不起作用。可能java在运行时已经启动后设置变量。
Even defining the java.endorsed.dirs property to some local directory doesn't work. Probably java sets the variables after the runtime is already up.
两种可能的解决方案:
-
从Web启动应用程序,只运行带有java.endorsed.dirs的命令行java和web启动应用程序将执行的所有依赖项(classpath& args)。您每次都必须处理jnlp jar更新。
From the web start application, only run command line java with java.endorsed.dirs and all the dependencies (classpath & args) the web start application would do. You have to handle jnlp jars updates each time.
首次运行时需要用户或自动将所需的jar复制到JRE / lib / endorsed目录。然后需要重启web启动应用程序。请注意,此方法将为将使用JRE运行的所有Java应用程序提供已批准的jar。
At first run require user or do automatic copy of required jar to JRE/lib/endorsed directory. And then require restart of web start application. Note that this method will put endorsed jars for all java application that will run with the JRE.
这篇关于Java WebStart和已签名的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!