The bootloader constants seem to be misleading since when printing environment variables for a running JVM website:
OS: Windows 7 Arch: amd64
We tracked the problem down to the corresponding SWT jars for a non-downloadable user environment (to add fun to this RCP application deployed via webstart).
In the corresponding 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>
For most people, this was fine, since the 32-bit jre uploaded a resource for the x86 architecture, and everything was fine.
The problem on David's machine consisted of a 64-bit JVM, and it reports that the arch property was declared as amd64, not x86_64 (despite being an Intel processor).
Changing the resource section is as follows:
<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>
source share