Setting Cmd in ini file for java application - Advanced Installer Community

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!

gjandris
Posts: 15
Joined: Tue Jan 12, 2010 8:51 pm

Setting Cmd in ini file for java application

One of our applications requires passing it arguments that will have spaces in the path, for example: -Djava.ext.dirs="[APPDIR]lib\was\client\lib;[APPDIR]lib\was\client\plugins" [APPDIR] resolves to c:\Program Files (x86)\... for example.
I for the life of me can't figure out how to put this in the Command Line part of the Virtual Machine tab in the Java Product.
Is there some way I don't know of to escape the quotes inside of the quotes around the whole Cmd=" " ? This is driving me nuts.
Thanks. :?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Setting Cmd in ini file for java application

Hello,

It appears you are trying to set that string in the Command Line field. Why so? That field represents the command line parameters passed to your java app's main.
The string you are referring to, should be left in the JVM Parameters field.
The Command Line field should be left empty if you are not passing command line parameters to your app.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
gjandris
Posts: 15
Joined: Tue Jan 12, 2010 8:51 pm

Re: Setting Cmd in ini file for java application

Your right! Well that's embarrassing. :oops:
Thanks.

Return to “Common Problems”