How to make a snap from a .jar

Matthew Aguirre matt.aguirre at
Wed Oct 12 16:26:46 UTC 2016

Assuming this is a GUI and not command line.
You'll need to add in access to X11 and also import in the full Java 
environment since the jdk plugin is headless.

Also, I'm not sure about executing the jar straight from the 
commandline.  It's easier to have a wrapper that does this work for you.

On Wed, Oct 12, 2016 at 12:19 PM, oldgeek <oldgeek at> 
> Hi
> I have a executable .jar file inside of a .tar.
> When I build and install  a snap using this .yaml:
> It does not work and I get this fault:
> /snap/highlighterpdf/x17/command-highlighterpdf.wrapper: 7: exec: 
> highlighterpdf: not found
> Any help gratefully received.
> Gerry
> --
> Snapcraft mailing list
> Snapcraft at
> Modify settings or unsubscribe at: 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Snapcraft mailing list