Mixed Mac / Win installer issue with 64-bit Java - 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!

rcordes
Posts: 2
Joined: Thu Dec 03, 2009 7:38 pm

Mixed Mac / Win installer issue with 64-bit Java

I am trying to build an Installer for a Java app for both OS-x & Windows.

Under Java Products > Settings, if I set "64-bit application" it runs fine under OS-X but won't run under Windows, which still uses 32-bit JRE. If I uncheck it, it runs fine under Windows, but not OS-X.

So my work-around is to build two, almost-identical Installers, one for each OS. Is there a more elegant solution?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Mixed Mac / Win installer issue with 64-bit Java

Hi,

As our user guide says if you select the mentioned option a 64-bit JRE will be used.

If on your Windows x64 it is installed a 32 bit JRE then it is normal for the launcher to fail (by saying that it cannot find the JRE). If the proper JRE would be installed then
the error wouldn't occur anymore.
Is there a more elegant solution?
You could try to add as a prerequisite (only for Windows x64) the 64 bit JRE, this way if not installed on the machine,
your package will install the needed JRE along with your application.

Please let me know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”