Java Web Start [英] Java Web Start

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

问题描述

我有一个jar文件,我正在加载Java的Web Start。当我从浏览器加载

..jnlp文件时,应用程序首次正确安装并运行

。如果我关闭应用程序并再次单击浏览器中的链接

,则Web Start启动画面会加载15-20秒并且

会在不启动应用程序的情况下消失。如果我从

Web Start实用程序中删除该应用程序,它将再次下载并执行第一次但不会随后再次执行



Web Start配置为使用浏览器设置。在网络设置下。

我也试过Direct Connection。在Mozilla

Firefox和IE 6.0下,结果是一样的。安装了JRE'的1.4.2_12,1.5.0_06和1.5.0_11

目前只启用了1.5.0_11。


有什么想法?


谢谢,

-Keith

I''ve got a jar file that I''m loading with Java''s Web Start. When I load the
..jnlp file from a browser, the application installs and runs properly the
first time. If I close the application and click on the link in the browser
a second time, the Web Start splash screen loads for 15-20 seconds and
disappears without launching the app. If I delete the application from the
Web Start utility it will again download and execute the first time but not
subsequently.

Web Start is configured to "Use Browser Settings" under Network Settings.
I''ve tried Direct Connection also. The results are the same under Mozilla
Firefox and IE 6.0. JRE''s for 1.4.2_12, 1.5.0_06 and 1.5.0_11 are installed
with only 1.5.0_11 enabled currently.

Any thoughts?

Thanks,
-Keith

推荐答案

Keith McCutcheon写道:
Keith McCutcheon wrote:

>我有一个jar文件,我正在加载Java的Web Start。
>I''ve got a jar file that I''m loading with Java''s Web Start.



...

...


>有什么想法吗?
>Any thoughts?



- 验证JNLP

- 将指向JNLP的链接发布到该组,或者失败..

- 将JNLP内容发布到小组。


-

Andrew Thompson
http://www.athompson.info/andrew/


留言通过< a rel =nofollowhref =http://www.javakb.comtarget =_ blank> http://www.javakb.com

- validate the JNLP
- post the link to the JNLP to the group, or failing that..
- post the JNLP content to the group.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via http://www.javakb.com


" Andrew Thompson" < u32984 @ uwewrote in message news:7113520b708e1 @ uwe ...
"Andrew Thompson" <u32984@uwewrote in message news:7113520b708e1@uwe...

- 验证JNLP

- 发布指向JNLP的链接小组,或失败..

- 将JNLP内容发布到小组。
- validate the JNLP
- post the link to the JNLP to the group, or failing that..
- post the JNLP content to the group.



谢谢,这里是...... 。


html和jnlp文件位于c:\ WebStart中。名为Aspect7.jar的jar在

c:\ WebStart \JarFile中。 html文件只包含指向jnlp文件的链接。


我在发布消息后下载了JRE 1.6.x并且它正常工作。我会

仍然想知道如何部署给那些还没有1.6的用户。


<! - JNLP文件 - - >

<! - jnlp spec =" 1.0 +" codebase =" file:/// WebStart"

href =" file:///WebStart/Aspect7.jnlp" - >

< jnlp>

< information>

< title> title< / title>

< vendor> vendor。< / vendor>

< description> description< / description>

< offline-allowed />

< / information>

< security>

< all-permissions />

< / security>

< resources>

< j2se version =" 1.4 +" />

< jar href =" file:///WebStart/JarFile/Aspect7.jar" />

< / resources>

< application-desc main-class =" aspect.Aspect">

< / application -desc>

< / jnlp>

Thanks, here it is....

The html and jnlp files are in c:\WebStart. The jar named Aspect7.jar is in
c:\WebStart\JarFile. The html file just contains a link to the jnlp file.

I downloaded JRE 1.6.x after posting the message and it works properly. I''d
still like to know how to deploy to users who don''t yet have 1.6.

<!-- JNLP File -->
<!--jnlp spec="1.0+" codebase="file:///WebStart"
href="file:///WebStart/Aspect7.jnlp"-->
<jnlp>
<information>
<title>title</title>
<vendor>vendor.</vendor>
<description>description</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="file:///WebStart/JarFile/Aspect7.jar"/>
</resources>
<application-desc main-class="aspect.Aspect">
</application-desc>
</jnlp>


Keith McCutcheon写道:

...
Keith McCutcheon wrote:
...

> - 将JNLP内容发布到该组。
>- post the JNLP content to the group.



..

..


> html和jnlp文件位于c:\\ \\WebStart。名为Aspect7.jar的jar位于
c:\ WebStart \ JarFile中。 html文件只包含指向jnlp文件的链接。
>The html and jnlp files are in c:\WebStart. The jar named Aspect7.jar is in
c:\WebStart\JarFile. The html file just contains a link to the jnlp file.



...

...


><! - JNLP文件 - >
<! - jnlp spec =" 1.0 +" codebase =" file:/// WebStart"
href =" file:///WebStart/Aspect7.jnlp" - >
><!-- JNLP File -->
<!--jnlp spec="1.0+" codebase="file:///WebStart"
href="file:///WebStart/Aspect7.jnlp"-->



我不习惯看到简单的''jnlp''元素,如...

I am not used to seeing a plain ''jnlp'' element like ..


> ;< JNLP>
><jnlp>



..这虽然DTD表明它应该没问题。

OTOH,这些路径看起来确实是错误的。

这是我本地系统的D:驱动器

上的文件的示例URL。


file:/ D:/ projects / TellURL .java


请注意,驱动器卷是作为URL的一部分列出的。


我建议恢复JNLP的注释版本

元素,但是像这样。


< jnlp spec =" 1.0 +"

codebase =" file:/ C:/ WebStart"

href =" Aspect7.jnlp>


随着jar HREF从此更改..

..this, though the DTD suggests it should be OK.
OTOH, those paths look decidedly wrong.
Here is an example URL for a file on the D: drive
of my local system.

file:/D:/projects/TellURL.java

Note that the drive volume is listed as part of the URL.

I suggest reinstating the commented version of the JNLP
element, but like this.

<jnlp spec="1.0+"
codebase="file:/C:/WebStart"
href="Aspect7.jnlp>

With the jar HREF changed from this..


< jar href =" file:///WebStart/JarFile/Aspect7.jar" />
<jar href="file:///WebStart/JarFile/Aspect7.jar"/>



..来这个。


< jar href =" JarFile / Aspect7.jar" />


罐子& JNLP HREF'是相对于

代码库的路径..


-

Andrew Thompson
< a rel =nofollowhref =http://www.athompson.info/andrew/target =_ blank> http://www.athompson.info/andrew/


通过 http://www.javakb.com 发布的消息

..to this.

<jar href="JarFile/Aspect7.jar"/>

The jar & JNLP HREF''s are paths relative to the
codebase..

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via http://www.javakb.com


这篇关于Java Web Start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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