anthony.ikeda
Posts: 3
Joined: Thu Apr 16, 2009 12:37 am

Mac Product Build Java Version. Bug?

We have a project that produces 2 artifacts:
* Windows installer
* Mac OS X Application Bundle

When we configure the JRE versions (Java Products > Settings > JRE Settings) the Mac OS X application bundle seems to limit the version to the Maximum JRE Version:
Info.plist:
<key>JVMVersion</key>
<string>1.6*</string>

In my JRE settings, the Minimum value is set to 1.5 the maximum value set to 1.6, yet the version in the bundle is configured to 1.6*.

This means if a 1.6 JRE is not present the application will not run.

We want to ensure the application runs on Mac OS X and Windows with either JRE 1.5 or 1.6 without affecting either build.

Is this a bug?

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

Re: Mac Product Build Java Version. Bug?

Hi Anthony,

No, this is not a bug. Unfortunately MAC OS X does not support a minimum and maximum version like Windows does. Instead, it uses the supported version and a parameter which tells it what to do with it. You can find more details about this here.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anthony.ikeda
Posts: 3
Joined: Thu Apr 16, 2009 12:37 am

Re: Mac Product Build Java Version. Bug?

Then shouldn't Advanced installer use the Minimum version value for the JRE version?

I mean I take it:
<key>JVMVersion</key>
<string>1.5+</string>

Means version 1.5 and above?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Mac Product Build Java Version. Bug?

Hi,

I added this improvement on our TODO list and it will be available in a future version. Thank you for your suggestion.
Until then a workaround is to use only a minimum JRE version for the Java product.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anthony.ikeda
Posts: 3
Joined: Thu Apr 16, 2009 12:37 am

Re: Mac Product Build Java Version. Bug?

Thanks cosmin. We have found a workaround which means setting the minmum version to 1.5 and the Maximum version to "any" which inserts the "1.5+" string.

After reviewing the apple link more closely I understand how their explanation can be confusing.

Anthony

Return to “Common Problems”