Java WebStart 和认可的目录 [英] Java WebStart and endorsed directories

查看:37
本文介绍了Java WebStart 和认可的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在 java webstart .jnlp 文件中指定我的一些 jars 覆盖了 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.

对此有两种可能的解决方案:

Two possible solutions to this:

  1. 从 web start 应用程序中,仅运行带有 java.endorsed.dirs 的命令行 java 以及 web start 应用程序将执行的所有依赖项(类路径和参数).您每次都必须处理 jnlp jars 更新.

  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.

首次运行时需要用户或自动将所需的 jar 复制到 JRE/lib/endorsed 目录.然后需要重新启动 web start 应用程序.请注意,此方法将为将与 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆