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!

gbpa005
Posts: 4
Joined: Wed Oct 27, 2010 11:34 am

Mac OS X App Bundles still have the old format

Hello,
I just tried Advanced Installer and it is really a cool product. I would like to buy the java version and there is a question left: The App-Bundles for Mac, which are created by Advanced Installer still have the old format defined for the Apple JRE. New macs with OS X 10.9 and onwards will not run these, even if an Oracle Runtime is present on the computer. The reason lies in the "JavaApplicationStub" in the MacOS-folder, which does not recognize the Oracle VM. Is there a plan to update Advanced Installer to use the Oracle VM or even to bundle a JRE with the .app. Otherwise it cannot be deployed over the app store, is not allowed to open connections over the firewall (need certificates as well) and won't run on new macs. Please take a look at http://stackoverflow.com/questions/1480 ... n-mac-os-x (first reply) and the talk on http://www.parleys.com/play/51489229036 ... er42/about

Am I wrong, and it already is Java7-ready or is this feature included in the future? This realy is essential.

Regards,
gbpa005
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Mac OS X App Bundles still have the old format

Hello,

Thank you for all the information above.
We already have this improvement on our TODO list and it will be available in a future version of Advanced Installer.
Thank you for your suggestion.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gbpa005
Posts: 4
Joined: Wed Oct 27, 2010 11:34 am

Re: Mac OS X App Bundles still have the old format

Thank you very much for the information. Is there a roadmap, when this feature will be available in Advanced Installer?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Mac OS X App Bundles still have the old format

Hello,

I'm afraid I cannot give you an ETA for this at this moment. I'll let you know when it will be available.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Mac OS X App Bundles still have the old format

Hello,

Starting with version 10.9 of Advanced Installer released on January 23, 2014 we have added support for Java 7 on Mac OS X.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gbpa005
Posts: 4
Joined: Wed Oct 27, 2010 11:34 am

Re: Mac OS X App Bundles still have the old format

Fantastic! You have won a new customer just now. :)
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Mac OS X App Bundles still have the old format

These are great news.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrispeto
Posts: 2
Joined: Fri Feb 07, 2014 12:20 pm

Re: Mac OS X App Bundles still have the old format

I have updated to 10.9, but JavaApplicationStub still does not recognize my Java 7.

Under /Library/Java/JavaVirtualMachines there are jdk1.7.0_45.jdk and jdk1.7.0_51.jdk installed

And when "/usr/libexec/java_home -V" called it shows all Versions 1.6,and 2 x 1.7 with the path to them or just call "/usr/libexec/java_home" to get the lastest.

Please use this to find all Versions installed.

Refer to: http://www.mkyong.com/java/how-to-set-j ... -mac-os-x/

Thanks,
Chris
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Mac OS X App Bundles still have the old format

Hello Chris and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Indeed, this behavior is caused by a limitation of our java launcher for Mac OS. When installing the package on Mac OS X machines with JAVA 7 (Oracle VM) the "libjli.dylib" file is searched at the following location:

Code: Select all

/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib
or relative to the installed application (if you have added a JRE bundle). This is our default implementation. Maybe we will add an improvement regarding this in a future version of Advanced Installer.

Until then, as a workaround, you can write your own java launcher for Mac OS and integrate it in your installation projects. Our Mac OS java launcher is extended by "appbundler" from Oracle.

So you can write your own java launcher for Mac OS and, then all you have to do is to open the Advanced Installer application, go to "Options -> External Tools" and add your custom java launcher in the "Mac OS Launcher" field.

If you want to edit our default Mac OS java launcher functionality you can send us an e-mail to support at advancedinstaller dot com and we can provide you the source code of our Java launcher.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrispeto
Posts: 2
Joined: Fri Feb 07, 2014 12:20 pm

Re: Mac OS X App Bundles still have the old format

/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib

This lib is present and is 1.7.

Regards,
Chris
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Mac OS X App Bundles still have the old format

Hello Chris,

Do you mean that the "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib" file exists on your Mac OS machine, but our java launcher still doesn't detect the JRE 7. Can you please tell us what error do you get?

Also, can you please make sure you have set the "VM Provider" combo box to "Oracle VM" in your project?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rtuck
Posts: 3
Joined: Tue Feb 04, 2014 7:30 pm

Re: Mac OS X App Bundles still have the old format

I believe I have encountered something similar. I am trying to generate an app bundle that can be signed using the OS X codesign utility in order that it can be downloaded and run with the default OS X Gatekeeper settings.

I am bundling Oracle Java 7u51 JRE with my application.
Currently AI 10.9 will only recognise a JRE extracted from the JDK (in /Libraries/JavaVirtualMachines). If a downloaded JRE is used (from /Library/Internet Plug-ins/JavaAppletPlugin.plugin), Advanced Installer complains that it cannot find libjli.dylib. It looks in the wrong place (jre/lib/libjli.dylib instead of lib/libjli.dylib).

However it is not possible to embed such a JRE with the application and then sign it with the codesign tool as it is not correctly packaged in the format that codesign requires.

As a workaround, I have managed to get a JRE from Internet Plug-ins signed by copying the libjli.dylib to the expected location in the JRE folder hierarchy; AI then accepts this as a valid JRE and the launcher then starts.

However it would be better if this issue were addressed properly.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Mac OS X App Bundles still have the old format

Hello,

I've opened a ticket in our bug tracking system to investigate this scenario. In order to have a better view of your specific scenario can you send us your .aip (project file) and its Mac OS build output to support at advancedinstaller dot com so we can test and investigate this? Also, if you don't want to make a disclosure of your installation files, then you can try to isolate the scenario in a sample and send it us alongside a step by step test case scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Mac OS X App Bundles still have the old format

Hello,
I am bundling Oracle Java 7u51 JRE with my application.
Currently AI 10.9 will only recognise a JRE extracted from the JDK (in /Libraries/JavaVirtualMachines). If a downloaded JRE is used (from /Library/Internet Plug-ins/JavaAppletPlugin.plugin), Advanced Installer complains that it cannot find libjli.dylib. It looks in the wrong place (jre/lib/libjli.dylib instead of lib/libjli.dylib).
This is our default behavior. You cannot add as JRE bundle for your Mac OS build the JRE installation folder. You are allowed to bundle only the JRE installed by the JDK installation. This is due to some guidelines recommended by Mac OS.

Also, when pinpointing to the JDK installation folder (in order to add a JRE bundle for Mac OS build) it seems we bundle the entire JDK installation folder. This is an Advanced Installer limitation and a fix will be added in a future version of Advanced Installer. Until then, as a workaround, you can copy your Mac OS JDK installation folder on a temporary location, delete within the JDK installation folder all irrelevant folders for the "jre" subfolder and, then add the stripped down JDK installation folder as a JRE bundle.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”