Javapackager tool from command-line on OSX?


Staff member
javapackager and javafxpackager don't seem to be recognised on the command line for me. They don't show up in the terminal, even after I installed the latest 1.8 SDK. (Even 'echo $JAVA_HOME' seems to be drawing a blank, though java -version seems to work fine.)

If I look under /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/ I can see the javapackager and javafxpackager tools are present, but if I follow /usr/libexec/java_home back to it's origin in /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/ , there's no sign of them.

The only other discussions I could find on the subject were a blog post and mailing list from about a year and a half back:
<a href="" rel="nofollow noreferrer"></a>
<a href="" rel="nofollow noreferrer"></a>

I realise OSX hasn't come with java 'by default' for some time, but that's kinda why I was hoping to release my application as a self-contained bundle with it's own VM. Would it be standard procedure to update my bash profile to point at the tool explicitly? Is there something screwy about my personal setup, or is there some gap in the tool support on OSX?

PS: I realise there's an older thread on this subject below:
<a href="">What is the best way to deploy JavaFX application, create JAR and self-contained applications and native installers</a>

However, that describes javapackager as a .jar file, and whatever I've got doesn't seem to be a .jar file. I'm legitimately confused about what I'm supposed to do with it.

EDIT: Thanks to everyone for the tips- I think I have enough info to go on for now.