This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Specifying a Valid VM List for a Pure Java Installer
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Specifying a Valid VM List for a Pure Java Installer
Specifying a Valid VM List for a Pure Java Installer
Summary
This article goes over why the Valid VM List will not work with a pure Java installer and provides a workaround for this limitationSynopsis
You can specify a list of Java Virtual Machines for the installer to run with under the Project > JVM Settings > Installer Settings > Valid VM list setting. However, this setting will only affect the launcher for the installer. When selecting the Other Java-Enabled Platforms build target, a pure Java installer will get created, in which case a launcher will not be used. As a result, launcher-specific settings will not affect a pure java installer. To limit a pure Java installer to only run on certain JVMs, refer to the discussion below.Discussion
The following example outlines how to set a "valid VM list" for an installer to run only on Java 7 and Java 8:- In the project, go to Project > Rules and add a "Compare InstallAnywhere Variables" Rule
- Set the properties of the Rule as follows:
Operand 1 = $prop.java.version$ contains Operand 2 = 1.7 - Add another "Compare InstallAnywhere Variables" Rule
- Set the properties of the Rule as follows:
Operand 1 = $prop.java.version$ contains Operand 2 = 1.8 - Modify the Rule expression to 'OR' the Rule ID's.
- EX: CIAV111 || CIAV222 (Where CIAV# are the ID's designated for each rule added)
Additional Information
Installer Rules ViewRules Reference
Building Complex Rule Expressions
No ratings