Java Webstart报告错误的Bootloader选项 [英] Java Webstart Reporting Wrong Bootloader options

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

问题描述

我在通过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报告错误的Bootloader选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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