[SOLVED] How can I build two Java products for OS X? - 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!

csmart
Posts: 22
Joined: Tue Sep 22, 2009 7:49 am

[SOLVED] How can I build two Java products for OS X?

Greetings,

My project creates two products both based on the same Java code (different main classes). The Windows build works properly providing both executables, but for the OS X build I cannot create both, only one or the other. If I try to create OS X products for both, Advanced Installer crashes completely.

Perhaps I'm doing something wrong? Under "Project Definition -> Java Products" I have my two products listed. Under the "Mac OS X" tab of both products I have "Include the Java Product in the Mac OS build" ticked. I have tried every combination of "Product Section" and "Common Section" I can think of, but they all cause AI to crash.

If I select just one, then it works properly.

Any ideas?

Thanks!
Chris
Last edited by csmart on Wed Oct 07, 2009 11:20 pm, edited 1 time in total.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How can I build two Java products for OS X?

Hi Chris,
If I try to create OS X products for both, Advanced Installer crashes completely.
Could please tell me when exactly does Advanced Installer crashes? When you build the package?

Also could you send me the .aip file to support at advancedinstaller dot com so I can investigate the problem?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
csmart
Posts: 22
Joined: Tue Sep 22, 2009 7:49 am

Re: How can I build two Java products for OS X?

Hi Bogdan,
Bogdan wrote:Could please tell me when exactly does Advanced Installer crashes? When you build the package?
Sure. Yes, when I tell the Advanced Installer to build my project it creates the Windows build successfully, then it progresses to build the Mac version and fails early on. I can send you the output of the segfault if the file if it's helpful. Perhaps I'm configuring the Mac build incorrectly, as per my other issue.
Bogdan wrote:Also could you send me the .aip file to support at advancedinstaller dot com so I can investigate the problem?
Sure, email sent.

Cheers,
Chris
csmart
Posts: 22
Joined: Tue Sep 22, 2009 7:49 am

Re: How can I build two Java products for OS X?

Crash caused by adding a "folder" to the classpath which had only .jar files, not .class. Need to specifically add .jars individually. Fixed in new version. Thanks Bodgan!

-c

Return to “Common Problems”