LinuxDude
Posts: 8
Joined: Thu Jul 30, 2009 12:24 am

Java 6 on a Mac

Hello AdvancedInstallers,

I have a Java 6 app and I would like to distribute it for the Mac. Is this something AI supports yet? I know that Java 5 is (for whatever reason) still the default JVM on OS X. How can I configure my app to a) get Java 6 installed and b) use it to run?

Btw, I don't care about supporting some of the older versions of OS X that don't have Java 6.

Thanks
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Java 6 on a Mac

Hi,
a) get Java 6 installed
For the moment Advanced Installer doesn't support this feature for Mac OS X packages. There are supported only Multiple Java Products, File Associations and most of Java settings ( splash screen, JVM type and Library path are not supported). Other settings like custom actions, environment variables, registry,software prerequisites etc. are not supported.
b) use it to run?
Your application will run only if the users already have Java 6 on their computers. Here are some other settings available for Mac OS X packages.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kmoeller
Posts: 3
Joined: Mon Jul 27, 2009 8:28 pm

Re: Java 6 on a Mac

Apple has a webpage on Java perhaps you can find some info there: http://developer.apple.com/java/
I couldn't find anything on apple's site but a google search seems to indicate the 64bit edition of Java 6 will be
the default on Snow Leopard.
Edit: According to the AI page on mac linked in the above post you can specify the required OS X version,
so I think if you specify that in needs to be Snow Leopard, you will probably be set.
LinuxDude
Posts: 8
Joined: Thu Jul 30, 2009 12:24 am

Re: Java 6 on a Mac

Thanks, I'll require Snow Leopard. Unfortunately it's not released yet. For the other users I'll give them a link showing how to run the JAR file. That's not so good, but it's Apple's fault for totally screwing over Java developers. Java 6 is old stuff by now and it should be the default.

Return to “Common Problems”