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
- :
- "Error: Could not create Java Virtual Machine" When Launching InstallAnywhere
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
"Error: Could not create Java Virtual Machine" When Launching InstallAnywhere
"Error: Could not create Java Virtual Machine" When Launching InstallAnywhere
Summary
Error during initialization of JVM when attempting to launch InstallAnywhere IDE or running build.exeSymptoms
When attempting to launch the InstallAnywhere IDE, the following error message may be displayed:
The following error may also occur when attempting a command line build:
Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Cause
This issue can occur when the maximum heap size for the Java VM is larger than what the computer's physical memory can allow.Resolution
To decrease the Java heap size for the InstallAnywhere IDE on Windows or Linux, follow these steps:- Close the InstallAnywhere IDE.
- Navigate to the main InstallAnywhere installation directory.
- Open the InstallAnywhere.lax file in a text editor.
- Find the following lines:
-
lax.nl.java.option.java.heap.size.initial=[size] lax.nl.java.option.java.heap.size.max=[size]
- Specify the new memory size, which should be appropriate for the available amount of system resources, in bytes.
- Save the InstallAnywhere.lax file.
- Open/launch the InstallAnywhere IDE.
To decrease the Java heap size for the InstallAnywhere IDE on Mac OS X, follow these steps:
- Close the InstallAnywhere IDE.
- Navigate to the main InstallAnywhere installation directory.
- Show the package contents of the InstallAnywhere.app package
- Open the Info.plist file with a text editor
- Find the following items under the VMOptions key:
-
<string>-Xmx[size]</string> <string>-Xms[size]</string>
- Specify the new memory size, which should be appropriate for the available amount of system resources.
- Save the Info.plist file.
- Open/launch the InstallAnywhere IDE.
To decrease the Java heap size for the command line builder, follow these steps:
- Navigate to the main InstallAnywhere installation directory.
- For Windows or Linux, open the build.lax file in a text editor. For Mac OS X, open the build.command.lax file in a text editor.
- Find the following lines:
-
lax.nl.java.option.java.heap.size.initial=[size] lax.nl.java.option.java.heap.size.max=[size]
- Specify the new memory size, which should be appropriate for the available amount of system resources, in bytes.
- Save the .lax file.
- Run the command line build.
Additional Information
For more information on modifying the Java heap size, refer to: Increase the Java Heap Size Memory Allocation for InstallAnywhere IDE and Installer
100% helpful
(1/1)