Introduction
Applications launched via InstallAnywhere LaunchAnywhere executables may display incorrect Java Swing UI scaling compared to launching the bundled java.exe directly. This article explains the cause and provides steps to reproduce, diagnose, and resolve the scaling difference.
#1: Reproduce the Issue
- Launch the application using the InstallAnywhere LaunchAnywhere executable and observe the Java Swing UI scaling behavior.
- Launch the application by running the bundled
java.exedirectly with the same JVM and observe the UI scaling for comparison.
#2: Diagnose the Cause
- Confirm that the LaunchAnywhere executable sets JVM properties from its LAX configuration file.
- Verify whether the JVM property sun.java2d.uiScale.enabled is present and set to false in the LAX configuration. InstallAnywhere 2020 and later (affecting InstallAnywhere 2026) add sun.java2d.uiScale.enabled=false by default.
#3: Resolve the Scaling Difference
- Edit the LaunchAnywhere LAX configuration file used by the executable.
- Locate the JVM property entry for sun.java2d.uiScale.enabled. If it is set to false, change it to true. If it is not present, add the property with value true.
- Save the LAX configuration and relaunch the application via the InstallAnywhere executable.
- Confirm that the Java Swing UI scaling now matches the behavior observed when launching
java.exedirectly.
Additional Notes
- Engineering determined the behavior is a configuration choice rather than a product defect.
- Consider documenting this JVM property change in deployment notes so other users are aware of the default in recent InstallAnywhere releases.
After setting the JVM property sun.java2d.uiScale.enabled=true in the LaunchAnywhere LAX configuration, Java Swing UI scaling is restored to match launches performed with the bundled java.exe. The application UI displays at the expected scale.
Related Articles
How to Change the Java VM Used by the Uninstaller or a LaunchAnywhere Executable 5Number of Views Turning on console output for a LaunchAnywhere executable 4Number of Views Silent Installation Behavior when using InstallAnywhere 19Number of Views Installer Exit Codes on Linux when using InstallAnywhere 27Number of Views Running an Installer Silently Using InstallAnywhere 6Number 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