Native java launcher - 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!

elver
Posts: 29
Joined: Thu Oct 11, 2007 9:50 am

Native java launcher

Hi,

I'm trying to pass in arguments to the main class wrapped by the launcher.
According to the user's guide (http://www.advancedinstaller.com/user-g ... ncher.html), it's possible using the command line options ('The command line options are passed as arguments to the Main method'). But when I set such options, they are actually passed to the jvm, not to the main class.

Thanks for help

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

Hi,
According to the user's guide (http://www.advancedinstaller.com/user-g ... ncher.html), it's possible using the command line options ('The command line options are passed as arguments to the Main method').
This section in the User-guide is referring to the command line specified by the user at runtime.

You cannot specify constant parameters as arguments to the main class because there the runtime command line is used. If your application need constant parameters, these parameters can be defined as JVM properties.

You can read more about this here:
http://www.advancedinstaller.com/forums ... properties

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elver
Posts: 29
Joined: Thu Oct 11, 2007 9:50 am

Thanks a lot for your answer
regards

Return to “Common Problems”