Parameter to java app on Mac - 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!

Jim
Posts: 2
Joined: Wed Sep 15, 2010 11:01 am

Parameter to java app on Mac

Hi,

First I would like to thanks the team for this great tool.
I’m using Advanced Installer 7.7 to distribute my Java app on Windows and Mac.

I’m currently running on a small problem, my app needs to receive a parameter (-debug) in the Main function. So I setup this parameter under: Java Products->Virtual Machine->Command Line
On Windows no problem, my app receives this parameter but not on Mac :(
I opened the generated Info.plist and the parameter is actually missing form the XML.

I would like to know if I’m doing something wrong, is it a known issue?

Thanks or you help.

Jim.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Parameter to java app on Mac

Hello Jim,

Advanced Installer doesn't currently support custom parameters on MAC OS.
As a workaround you can try to manually modify your configuration file from the ZIP archive. Although I am not sure this will work.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jim
Posts: 2
Joined: Wed Sep 15, 2010 11:01 am

Re: Parameter to java app on Mac

Hi Mihai,

Thanks for your answer.

Yes it actually works, I'm adding the following XML to the generated Info.plist:
<key>Arguments</key>
<string>-myArg</string>

And I'm receiving my argument inside my app.

Thanks,

Jim.

Return to “Common Problems”