I know this issue has been raised once or twice before on this forum but, to my knowledge, the issue has never been resolved.
Advanced Installer creates the executable that launches my application. A number of customers have been unable to run the application with this launcher because they are presented with an error dialog saying, "JNI exception: failed to create the Java VM. Reason: not enough memory."
In each case there is sufficient memory available to run the application. The maximum heap size is set to 1024 Mb and the PCs have between 2 and 4 Gb of RAM installed. Furthermore, writing my own launcher with the same parameters as the AI launcher works, as does a bat file.
My question is, why does the AI launcher fail when others do not? What is the AI launcher doing that is different?
Below are the contents of the launcher's ini file.
[Display]
Preffer Native Splash Screen=Yes
Splash Screen=C:\LPB\bin\splashscreen.gif
[Java Runtime Environment]
Maximum Version=any
JRE Path=C:\LPB\jre\
JVM Source=favor_JRE
JVM Type=favor_client
Virtual Machine Parameters=-Xmx1024M -Duser.dir="C:\LPB\bin\"
Minimum Version=1.6
Main Class=com.lbp.ui.browser.application.Browser
[Product Information]
Product Code={16156D04-FBBC-437C-9216-4AB40FEAE5A5}
Product Name=LPB 1.2
Upgrade Code={C461D1BC-900B-42AE-9462-24F8F7CB18CE}
[Application]
Application Type=gui
Failure Check=yes
Single Instance=yes
[Class Path]
Class Path=C:\LPB\lib\lpb.jar;
Thank you for your time.
Barry
ps. "Preffer Native Splash Screen" should be "Prefer Native Splash Screen"