English 中文(简体)
Java 强制性更新对话始终显示
原标题:Java WebStart Mandatory update dialogue always shown

我们的申请通过网络启动,由一线新进工党共同启动,使用以下方法确保只使用最新的代码:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+"
 codebase="$$codebase" href="$$codebase/"app name...."jnlp">

  <update check="always" policy="prompt-run"/>
    <information>
      <title>title....</title>
      <vendor>vendor name...</vendor>
      <shortcut online="true">
        <desktop/>
       <menu submenu="@start.menu.title@" />
       </shortcut>
    </information>
 <security>
  <all-permissions/>
 </security>
 <resources>
    <!-- Application Resources -->
    <j2se version="1.6+"
      initial-heap-size="128m"
      max-heap-size="512m"
          href="http://java.sun.com/products/autodl/j2se"/>

    <jars....>
    <properties....>

  </resources>
   <application-desc
  name="name..."
     main-class="main class....">
   </application-desc>
</jnlp>

在大多数环境中,这项工作很出色,可以通报最新情况并援引新资源的下载。 然而,在一个试验环境中,“强制性更新”在每一申请启动时都显示对话。 但是,在点击“K”纽扣后,申请没有下载,而是正常运行。

我没有发现任何很好的文件,能够说明与什么时间比较,以确定是否有最新情况。

任何其他人都看到了这一问题,或是否有任何观点或信息可以分享?

此外,几个月前,我还在Oracle的现场看到了一个论坛员额,但只有两张招贴画,没有答案。 当我试图提出答复时,该网址被缩小(似乎与Oracle......共同发生)。

问题回答

在我的案件中,我使用了:

<update check="always" policy="always" />

And it works without the warn when i don t have things to update.

或许也可以帮助你。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签