Summary
How to determine the bitness of the JVM used to run the installer in Windows.Synopsis
This article explains how one can determine the bitness of the JVM used to run the installer in Windows.
Discussion
In Windows, the rule ?Check System Architecture? can be used to determine the system architecture (32 bit or 64 bit) regardless of the bitness of the JVM used to run the installer. This is not the case in non-Windows platforms, since the rule checks the value of the Java System property ?os.arch? in order to determine the system architecture and thus relies on the bitness of the JVM used to run the installer. So if a 32 bit JVM is bundled with an installer that runs on a non-Windows platform, the rule will always return the system architecture as 32 bit regardless of whether the machine is 64 bit or 32 bit.
In Windows, the rule makes a call to native API to determine the system architecture. Thus it is independent of bitness of the JVM used to run the installer. Regardless of what bitness of JVM is used to run the installer, the rule always returns 64 for a 64 bit machine and 32 for a 32 bit machine on Windows platform.
On non-Windows platforms, to determine the bitness of the JVM used to run the installer, one can simply make use of the Check System Architecture rule. In Windows, to determine the JVM bitness used to run the installer, one can use one of the following Java System Properties:
os.arch
Or,
sun.arch.data.model, if using Sun JVM
com.ibm.vm.bitmode, if using IBM JVM
The above java system properties can be accessed through InstallAnywhere variables by prepending ?prop? to them such as shown below:
$prop.os.arch$
$prop.sun.arch.data.model$
$prop.com.ibm.vm.bitmode$
The IA variables $prop.sun.arch.data.model$ and $prop.com.ibm.vm.bitmode$ return 32 if the JVM used to run the installer is a 32 bit JVM and return 64 if the JVM used to run the installer is a 64 bit JVM.
Related Articles
License reconcile "Create new AutoSynchronized licenses" may fail to create licenses if account used to run reconcile proc… 7Number of Views How to Run the Installer and Uninstaller in Different UI Modes 15Number of Views "Graphical installers are not supported by the VM. The console mode will be used instead" 5Number of Views How to Change the Java VM Used by the Uninstaller or a LaunchAnywhere Executable 4Number of Views How does InstallScript project determine when to run in maintenance 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago