32 bit Java product executable doesn't pass arguments to JAR - Advanced Installer Community
eldaryus
Posts: 1
Joined: Mon Mar 17, 2014 8:34 pm

32 bit Java product executable doesn't pass arguments to JAR

Hi.

Attached is an AIP project for 32/64 bit mixed Java project with a simple JAR file that saves its comand line arguments to the test.txt file. When I execute the 64-bit native exe (airep 64.exe test), the "test" argument gets saved into the file, however with 32-bit (airep.exe test), it doesn't.

Is this a problem in Advanced Installer or something is wrong with my project?

Thanks,
Eldar.
Attachments
airep.7z
(4.75 KiB) Downloaded 174 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: 32 bit Java product executable doesn't pass arguments to

Hello Eldar and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I've tested your scenario and I could replicate the behavior on a target machine with 64-bit JRE installed (and without 32-bit JRE installed). When both 32 and 64-bit java launchers are installed on a target machine with 64-bit JRE installed and without 32-bit JRE installed, and the 32-bit launcher is launched, then the 32-bit launcher automatically call the 64-bit launcher. However, when the 32-bit launcher is called with command line parameters, it seems the command line parameters are not passed to the 64-bit launcher. This is an Advanced Installer limitation. A fix will be available in a future version of Advanced Installer, thank you for bringing this to our attention. We will let you know when a fix will be available.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 32 bit Java product executable doesn't pass arguments to

Hello,

This was fixed in version 11.1 of Advanced Installer released on April 28th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”