JavaFX Self-contained PKG and MacAppStore_PKG did not work

Danno Ferrin danno.ferrin at oracle.com
Mon Aug 10 04:23:17 UTC 2015


Mac installer is weird.  The install location in the installer is at best a strongly worded suggestion to the pkgutil code and I don't completely understand when it follows it and when it doesn't.

What I have seen in my development is that if the package has been installed and or run anywhere else on the machine then the pkgutil will install the app into that location as an update to the existing application.  So in my case I had an instance of the app that I had run from my source control build directory, and pkgutil chose to update that instance of the application rather than one I had in /Applicaitons that I drug in from a DMG.

It appears that this is driven by the CFBundleIdentifier, so changing the identifier may get a clean install.

Running  pkgutil --pkg-info <PKGID> may tell you where it is installed or where it thinks it is installed.


> On Aug 7, 2015, at 9:11 PM, Tai Hu <tai.hu at veroanalytics.com> wrote:
> 
> Hi,
>     I used JavaFX ant tasks to create all native packages on Mac OS X (JDK 8u51 on latest Mac OS X). Both .app and .dmg packages are working flawlessly. However, for PKG package, the very first installation was successful and my application show up in /Applications folder. However, if I delete my app from /Applications and use PKG package to install again, the installation process will always run successfully. However, my application did not show up inside of /Applications. I already tried to use pkgutil —forget <application id> and rebooted my Mac. It is still the same result. Installation of PKG package are always successful. But my application is not installed under /Applications folder.
> 
> Thanks,
> 
> Tai



More information about the openjfx-dev mailing list