Error Running Mac PAckage - Advanced Installer Community
wbinns
Posts: 6
Joined: Fri Jul 19, 2013 12:05 am

Error Running Mac PAckage

I have created an installer package (zip file) for Mac. When it installs, it is using a default icon, not the one I specified in Info.plist.

It also instantly exits when run. All I get is a terminal window with the following:

Last login: Mon Sep 9 21:20:47 on ttys000
Williams-Mac-mini:~ williambinns$ /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java ; exit;
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available (implies -server, only for x86_64)
-client to select the "client" VM
-server to select the "server" VM
-jvm is a synonym for the "client" VM [deprecated]
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
logout

[Process completed]
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error Running Mac PAckage

Hello,

I'm not sure why this happens. Please make sure you are using an ICNS format for your icon file.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wbinns
Posts: 6
Joined: Fri Jul 19, 2013 12:05 am

Re: Error Running Mac PAckage

Daniel,

I am using an ICNS files for my icons and the icon is being displayed correctly.

I did some investigating and found this error was being thrown:
9/11/13 11:40:43.483 PM [0x0-0x25025].com.Snap Legal Software LLC.SplitsEase Mac Edition.SplitsEase: ***WARNING: Display must be created on main thread due to Cocoa restrictions.

On the Eclipse SWT site I found that the -XstartOnFirstThread JVM parameter was required to allow SWT programs to run on OSX.

When I added this parameter I get this error:
9/11/13 11:40:43.233 PM JavaApplicationStub: Unrecognized Java VM option ignored: -XstartOnFirstThread

When I run the Java command from a command line the app launches correctly:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -XstartOnFirstThread -jar SplitsEase.jar

Any thoughts on what is wrong?

Will Binns
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error Running Mac PAckage

Hello Will,

I'm not sure why you are encountering this behavior. Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate it?

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: Error Running Mac PAckage

Hello Will,

Indeed, the related behavior seems to be caused by an Advanced Installer limitation. Currently Advanced Installer doesn't have support to set the "-XstartOnFirstThread" option. An improvement will be available in a future version of Advanced Installer, thank you for bringing this to our attention. We'll notify you when the fix will be out.

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: Error Running Mac PAckage

Hello Will,

This improvement was added in version 10.7 of Advanced Installer released on November 11, 2013.

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

Return to “Common Problems”