We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sd_thars
Posts: 2
Joined: Tue Dec 15, 2009 11:55 pm

Adding JVM Param to a Java product causes the app to fail

I have created a couple java products. If I don't add any JVM parameters through the Virtual Machine tab, the stub program will start the java app just fine. If I add any parameters such as an initial heap size (added through the Edit JVM parameters dialog) the java app fails to start and no error message is displayed.

Below is the AI genearted INI file for the java app.

[Java Runtime Environment]
Main Class=com.pcka.fastsim.agent.FSAgentService
Minimum Version=1.6
Maximum Version=any
Virtual Machine Parameters=-Xms256M
Library Path=C:\Program Files\PCKA\FastSim\Agent\lib\;C:\Program Files\PCKA\FastSim\dlls\;
[Class Path]
Class Path=C:\Program Files\PCKA\FastSim\Agent\FastSim_Agent.jar;
[Product Information]
Product Code={A628711E-C089-4BE4-B59C-756BC0767834}
Product Name=FastSim
Upgrade Code={D7679929-E042-4774-BF90-1E7510404823}
[Application]
Application Type=cmdline

If I remove the -Xms256M the application starts fine.

I am using AI version 7.0.1. I also downloaded the trail version of 7.3.1 and the same problem occurred with that version.

Am I doing something wrong?

Thanks,

Tony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Adding JVM Param to a Java product causes the app to fail

Hi Tony,

Perhaps the required memory cannot be allocated. Does the parameter work when using the "java.exe" command line? If so, can you please give me more details about the machine which shows the problem (Windows version, JRE, RAM etc.)?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”