Java WebStart and endorsed directories

房东的猫 提交于 2019-12-31 01:57:12

问题


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.


回答1:


It seems there is no way to define endorsed dirs in web start.

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.

Two possible solutions to this:

  1. 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.

  2. 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.



来源:https://stackoverflow.com/questions/842779/java-webstart-and-endorsed-directories

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!