Java Webstart 报告错误的引导加载程序选项 [英] Java Webstart Reporting Wrong Bootloader options

查看:35
本文介绍了Java Webstart 报告错误的引导加载程序选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过 Java Webstart 运行 Java RCP 应用程序时遇到问题.

I have problem running a Java RCP application via Java Webstart.

这适用于团队中的其他人,但不适用于我.(你不就是喜欢这类问题吗)

This works for others in the team, but not for me. (don't you just love those sort of problems)

我认为问题在于它下载的是 32 位版本的应用程序,而不是 64 位版本.

I believe the problem is that it is downloading the 32 bit version of the application, not the 64 bit.

当我查看机器上的 webstart .log 文件时,我可以看到以下内容.

When I look at the webstart .log file on my machine I can see the following.

!SESSION 2012-07-06 16:24:37.672 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_32
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB

所以我认为问题是OS-win32,WS=win32.

So I think the problem is OS-win32, WS=win32.

我的机器是 Windows 7 64 位.

My machine is a windows 7 64 bit.

有人知道我应该如何进行吗?

Has anyone got any ideas of how I should proceed?

推荐答案

引导加载程序常量似乎具有误导性,因为在打印运行 webstart 的 JVM 的环境变量时报告:

The bootloader constants appear to be misleading as when printed the environment variables for the JVM running webstart reported:

操作系统:Windows 7拱门:amd64

OS: Windows 7 Arch: amd64

我们将问题追溯到未下载用户环境的相关 SWT jar(为了增加乐趣,这是通过 webstart 部署的 RCP 应用程序).

We tracked the issue down to the relevant SWT jars for the user environment not being downloaded (to add to the fun this is an RCP app deployed via webstart).

在相关的 jnlp 文件中,我们有以下部分:

In the relevant jnlp file we had the following sections:

<resources os="Windows" arch="x86">
    <jar href="plugins/org.eclipse.swt.win32.win32.x86_${org.eclipse.swt.win32.win32.x86.version}.jar"/>
</resources>
<resources os="Windows" arch="x86_64">
    <jar href="plugins/org.eclipse.swt.win32.win32.x86_64_${org.eclipse.swt.win32.win32.x86.version}.jar"/>
</resources>

<resources os="Windows" arch="x86">
    <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_${org.eclipse.equinox.launcher.win32.win32.x86.version}.jar"/>
</resources>
<resources os="Windows" arch="x86_64">
    <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_${org.eclipse.equinox.launcher.win32.win32.x86.version}.jar"/>
</resources>

对于大多数人来说这很好,因为 32 位 jre 会下载 x86 架构的资源,一切都很好.

For most people this was fine as the 32bit jre would download the resource for the x86 architecture and all was well.

David 机器上的问题是运行 64 位 JVM,它报告 arch 属性被报告为 amd64 而不是 x86_64(尽管它是 Intel cpu).

The problem on David's machine was running a 64bit JVM and it reports the arch property was being reported as amd64 and not x86_64 (despite it being an Intel cpu).

将资源部分更改为如下所示可解决问题:

Changing the resources section to look like the following resolves the issue:

<resources os="Windows" arch="x86">
    <jar href="plugins/org.eclipse.swt.win32.win32.x86_${org.eclipse.swt.win32.win32.x86.version}.jar"/>
</resources>
<resources os="Windows" arch="x86_64">
    <jar href="plugins/org.eclipse.swt.win32.win32.x86_64_${org.eclipse.swt.win32.win32.x86.version}.jar"/>
</resources>
<resources os="Windows" arch="amd64">
    <jar href="plugins/org.eclipse.swt.win32.win32.x86_64_${org.eclipse.swt.win32.win32.x86.version}.jar"/>
</resources>

<resources os="Windows" arch="x86">
    <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_${org.eclipse.equinox.launcher.win32.win32.x86.version}.jar"/>
</resources>
<resources os="Windows" arch="x86_64">
    <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_${org.eclipse.equinox.launcher.win32.win32.x86.version}.jar"/>
</resources>
<resources os="Windows" arch="amd64">
    <jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_${org.eclipse.equinox.launcher.win32.win32.x86.version}.jar"/>
</resources>    

这篇关于Java Webstart 报告错误的引导加载程序选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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