Java Service Commandline args - 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!

drock
Posts: 3
Joined: Tue Mar 02, 2010 1:41 am

Java Service Commandline args

Hello,

I am doing an evaluation of Advanced Installer for work and I am running into an issue with the commandline arguments that are getting passed to my Java service.

What I am seeing is the .exe application name appears to be getting passed to the Java application. The standalone version of our Java app is configured to take the first argument as a config file location, so when the .exe wrapper filename gets passed, it's causing it to fail.

How do I keep the wrapper filename from getting passed to the Java service?

Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java Service Commandline args

Hello,

Thank you for taking your time to evaluate Advanced Installer.
I am afraid you can not currently prevent the wrapper's filename from getting passed to your Java service. I have however added the improvement on our TODO list, and this feature will be available in a future version of Advanced Installer.

Do let me know if I can be of any further assistance.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
drock
Posts: 3
Joined: Tue Mar 02, 2010 1:41 am

Re: Java Service Commandline args

Thank you for the quick response. Things are progressing fairly well for me, at the moment. Part of what confused me earlier with this was that a simple Java console app from the same code did not exhibit the same behaviour, so when we moved ahead to creating a service, it took a while to nail down what was happening.

Return to “Common Problems”